From: Jo-Philipp Wich Date: Thu, 1 Sep 2011 16:07:02 +0000 (+0000) Subject: libs/web: fix some missing escapes in iface and netlist widgets X-Git-Tag: 0.11.0~1864 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=37df666e0a3e566d0c15f65d497c5be32e6d4d6d;p=project%2Fluci.git libs/web: fix some missing escapes in iface and netlist widgets --- 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 -%><% end -%> .png" /> <% if link then -%><% end -%> - <%=iface:get_i18n()%><% local n = iface:get_network(); if n then %> (<%=n:name()%>)<% end %> + <%=pcdata(iface:get_i18n())%><% local n = iface:get_network(); if n then %> (<%=n:name()%>)<% end %> <% 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 %> - style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> + 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 %><%:(no interfaces attached)%><% end %>