From 37df666e0a3e566d0c15f65d497c5be32e6d4d6d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 1 Sep 2011 16:07:02 +0000 Subject: [PATCH] libs/web: fix some missing escapes in iface and netlist widgets --- libs/web/luasrc/view/cbi/network_ifacelist.htm | 2 +- 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 0dc93f968..a1b9f7451 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 882b86a65..4119ed3e2 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 %> -- 2.11.0