From: Steven Barth Date: Fri, 15 Aug 2008 18:26:32 +0000 (+0000) Subject: Some more escaping X-Git-Tag: 0.8.0~409 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=1d4196b3ff1bceaa858ffbee637bf212d5b5d428;p=project%2Fluci.git Some more escaping --- diff --git a/libs/cbi/luasrc/view/cbi/dvalue.htm b/libs/cbi/luasrc/view/cbi/dvalue.htm index 7d22fe0d9..bdcbd317e 100644 --- a/libs/cbi/luasrc/view/cbi/dvalue.htm +++ b/libs/cbi/luasrc/view/cbi/dvalue.htm @@ -16,12 +16,12 @@ $Id$ <%+cbi/valueheader%> <% if self.value then if type(self.value) == "function" then %> - <%=self:value(section)%> + <%=luci.util.pcdata(self:value(section))%> <% else %> - <%=self.value%> + <%=luci.util.pcdata(self.value)%> <% end else %> - <%=self:cfgvalue(section)%> + <%=luci.util.pcdata(self:cfgvalue(section))%> <% end %>   <%+cbi/valuefooter%> diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index cb41f53d1..5108e85c4 100644 --- a/libs/cbi/luasrc/view/cbi/lvalue.htm +++ b/libs/cbi/luasrc/view/cbi/lvalue.htm @@ -16,7 +16,7 @@ $Id$ <% if self.widget == "select" then %> <% elseif self.widget == "radio" then