Some more escaping

This commit is contained in:
Steven Barth 2008-08-15 18:26:32 +00:00
parent d212e531d5
commit 1d4196b3ff
2 changed files with 4 additions and 4 deletions

View file

@ -16,12 +16,12 @@ $Id$
<%+cbi/valueheader%> <%+cbi/valueheader%>
<% if self.value then <% if self.value then
if type(self.value) == "function" then %> if type(self.value) == "function" then %>
<%=self:value(section)%> <%=luci.util.pcdata(self:value(section))%>
<% else %> <% else %>
<%=self.value%> <%=luci.util.pcdata(self.value)%>
<% end <% end
else %> else %>
<%=self:cfgvalue(section)%> <%=luci.util.pcdata(self:cfgvalue(section))%>
<% end %> <% end %>
&nbsp; &nbsp;
<%+cbi/valuefooter%> <%+cbi/valuefooter%>

View file

@ -16,7 +16,7 @@ $Id$
<% if self.widget == "select" then %> <% if self.widget == "select" then %>
<select onchange="cbi_d_update(this.id)"<%= attr("id", cbid) .. attr("name", cbid) .. ifattr(self.size, "size") %>> <select onchange="cbi_d_update(this.id)"<%= attr("id", cbid) .. attr("name", cbid) .. ifattr(self.size, "size") %>>
<% for i, key in pairs(self.keylist) do -%> <% for i, key in pairs(self.keylist) do -%>
<option<%= attr("value", key) .. ifattr(self:cfgvalue(section) == key, "selected", "selected") %>><%=self.vallist[i]%></option> <option<%= attr("value", key) .. ifattr(self:cfgvalue(section) == key, "selected", "selected") %>><%=luci.util.pcdata(self.vallist[i])%></option>
<%- end %> <%- end %>
</select> </select>
<% elseif self.widget == "radio" then <% elseif self.widget == "radio" then