From 59a3cf86050753ae63aa44a9b1b5d6931ff86887 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 9 Apr 2009 14:09:39 +0000 Subject: [PATCH] applications/luci-livestats: properly escape essids (closes OpenWrt ticket #4888) --- .../luci-livestats/luasrc/view/livestats/wireless.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-livestats/luasrc/view/livestats/wireless.htm b/applications/luci-livestats/luasrc/view/livestats/wireless.htm index 670d9fbf6c..ca384b2f7c 100644 --- a/applications/luci-livestats/luasrc/view/livestats/wireless.htm +++ b/applications/luci-livestats/luasrc/view/livestats/wireless.htm @@ -26,8 +26,8 @@ padding: { left: 40, right: 10, top: 10, bottom: 20 }, instanceNames: { <%- for k,v in pairs(luci.sys.wifi.getiwconfig()) do %> - <%-="%q:%q," % {k, "%s (%s)" % {k, tostring(v.ESSID)}}-%> - <% end %> + <%-="%q:%q," % {k, "%s (%s)" % {k, luci.util.pcdata(tostring(v.ESSID))}}-%> + <% end %> "0": "" }}, null, -- 2.30.2