libs/web: fix missing escapes in network_ifacelist widget
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 25 Dec 2012 02:43:03 +0000 (02:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 25 Dec 2012 02:43:03 +0000 (02:43 +0000)
libs/web/luasrc/view/cbi/network_ifacelist.htm

index 727b0a4..643d849 100644 (file)
@@ -49,7 +49,7 @@
                %> /> &#160;
                <label<%=attr("for", cbid .. "." .. iface:name())%>>
                        <% if link then -%><a href="<%=link%>"><% end -%>
                %> /> &#160;
                <label<%=attr("for", cbid .. "." .. iface:name())%>>
                        <% 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" />
+                       <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" />
                        <% if link then -%></a><% end -%>
                        <%=pcdata(iface:get_i18n())%>
                        <% local ns = iface:get_networks(); if #ns > 0 then %>(
                        <% if link then -%></a><% end -%>
                        <%=pcdata(iface:get_i18n())%>
                        <% local ns = iface:get_networks(); if #ns > 0 then %>(