modules/admin-full: add a missing escape in packages template
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 13 Nov 2010 13:58:30 +0000 (13:58 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 13 Nov 2010 13:58:30 +0000 (13:58 +0000)
modules/admin-full/luasrc/view/admin_system/packages.htm

index a1a8d698f74cb0246374fd779971f89cfdcb6eb1..0b00324f4637bd76280559c1e765a6fbd49382ff 100644 (file)
@@ -61,7 +61,7 @@ local free_byte = space_free * fstat.frsize
                                <div class="cbi-value">
                                        <label class="cbi-value-title"><%:Filter%>:</label>
                                        <div class="cbi-value-field">
-                                               <input type="text" name="query" size="20" value="<%=query%>" />
+                                               <input type="text" name="query" size="20" value="<%=pcdata(query)%>" />
                                                <input type="submit" class="cbi-input-find" name="search" value="<%:Find package%>" />
                                        </div>
                                </div>
@@ -94,7 +94,7 @@ local free_byte = space_free * fstat.frsize
                </fieldset>
                <br />
 
-               <h3><%:Installed packages%><% if query then %> (<%=luci.util.pcdata(query)%>)<% end %></h3>
+               <h3><%:Installed packages%><% if query then %> (<%=pcdata(query)%>)<% end %></h3>
 
                <fieldset class="cbi-section">
                        <table class="cbi-section-table" style="width:100%">
@@ -122,7 +122,7 @@ local free_byte = space_free * fstat.frsize
                <br />
 
 
-               <h3><%:Available packages%><% if query then %> (<%=luci.util.pcdata(query)%>)<% end %></h3>
+               <h3><%:Available packages%><% if query then %> (<%=pcdata(query)%>)<% end %></h3>
 
                <fieldset class="cbi-section">
                        <table class="cbi-section-table" style="width:100%">