libs/cbi: properly escape values in dynlist widget (#79)
This commit is contained in:
parent
8f580be880
commit
6b1be858be
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ $Id$
|
||||||
for i=1, #vals + 1 do
|
for i=1, #vals + 1 do
|
||||||
local val = vals[i]
|
local val = vals[i]
|
||||||
%>
|
%>
|
||||||
<input class="cbi-input-text" value="<%=val%>" onchange="cbi_d_update(this.id)" type="text"<%= attr("id", cbid .. "." .. i) .. attr("name", cbid) .. ifattr(self.size, "size")%> />
|
<input class="cbi-input-text" value="<%=luci.util.pcdata(val)%>" onchange="cbi_d_update(this.id)" type="text"<%= attr("id", cbid .. "." .. i) .. attr("name", cbid) .. ifattr(self.size, "size")%> />
|
||||||
<% if i <= #vals then %>
|
<% if i <= #vals then %>
|
||||||
<input class="cbi-input-image" type="image" value="<%:cbi_del%>" name="cbi.rle.<%=section .. "." .. self.option .. "." .. i%>" alt="<%:cbi_del%>" title="<%:cbi_del%>" src="<%=resource%>/cbi/remove.gif" />
|
<input class="cbi-input-image" type="image" value="<%:cbi_del%>" name="cbi.rle.<%=section .. "." .. self.option .. "." .. i%>" alt="<%:cbi_del%>" title="<%:cbi_del%>" src="<%=resource%>/cbi/remove.gif" />
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Loading…
Reference in a new issue