diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-01 16:07:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-01 16:07:02 +0000 |
commit | 37df666e0a3e566d0c15f65d497c5be32e6d4d6d (patch) | |
tree | 886a1f590531cd7d52bd4ab4d78ff8d5fa6bfbf0 /libs/web/luasrc/view | |
parent | 3b9fbb12b8bae108e9b5ca4d790c685c2ebdc520 (diff) |
libs/web: fix some missing escapes in iface and netlist widgets
Diffstat (limited to 'libs/web/luasrc/view')
-rw-r--r-- | libs/web/luasrc/view/cbi/network_ifacelist.htm | 2 | ||||
-rw-r--r-- | libs/web/luasrc/view/cbi/network_netlist.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index 0dc93f9687..a1b9f74513 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -45,7 +45,7 @@ <% if link then -%><a href="<%=link%>"><% end -%> <img title="<%=iface:get_type_i18n()%>" style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> <% if link then -%></a><% end -%> - <%=iface:get_i18n()%><% local n = iface:get_network(); if n then %> (<a href="<%=n:adminlink()%>"><%=n:name()%></a>)<% end %> + <%=pcdata(iface:get_i18n())%><% local n = iface:get_network(); if n then %> (<a href="<%=n:adminlink()%>"><%=n:name()%></a>)<% end %> </label> </li> <% end end %> diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm index 882b86a65a..4119ed3e26 100644 --- a/libs/web/luasrc/view/cbi/network_netlist.htm +++ b/libs/web/luasrc/view/cbi/network_netlist.htm @@ -36,7 +36,7 @@ if not iface:is_bridge() then empty = false %> - <img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> + <img<%=attr("title", pcdata(iface:get_i18n()))%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> <% end end %> <% if empty then %><em><%:(no interfaces attached)%></em><% end %> </span> |