libs/web: fix some missing escapes in iface and netlist widgets
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 1 Sep 2011 16:07:02 +0000 (16:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 1 Sep 2011 16:07:02 +0000 (16:07 +0000)
libs/web/luasrc/view/cbi/network_ifacelist.htm
libs/web/luasrc/view/cbi/network_netlist.htm

index 0dc93f9687a2fae8d36f08f20ea89466c6952a08..a1b9f74513b0451b1b45c27c1cd6e4f4c4a27f21 100644 (file)
@@ -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 %>
index 882b86a65ace9ef4091da7aaf7512f9c4772f233..4119ed3e26041dbb0f41a076d64a7373f6d9f885 100644 (file)
@@ -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>