Skip to content
Permalink
Browse files Browse the repository at this point in the history
luci-mod-admin-full: proper SSID escaping in wifi join and iface over…
…view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Nov 5, 2019
1 parent a32190c commit bc17ef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -6,6 +6,7 @@ local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local util = require "luci.util"

local iw = luci.sys.wifi.getiwinfo(http.formvalue("device"))

Expand All @@ -16,7 +17,7 @@ if not iw then
return
end

m = SimpleForm("network", translatef("Joining Network: %q", http.formvalue("join")))
m = SimpleForm("network", translatef("Joining Network: %q", util.pcdata(http.formvalue("join"))))
m.cancel = translate("Back to scan results")
m.reset = false

Expand Down
Expand Up @@ -83,7 +83,7 @@
}

s.appendChild(E('br'));
s.appendChild(E('small', {}, ifc.is_alias ? '<%:Alias of "%s"%>'.format(ifc.is_alias) : ifc.name));
s.appendChild(E('small', {}, [ ifc.is_alias ? '<%:Alias of "%s"%>'.format(ifc.is_alias) : ifc.name ]));
}

var d = document.getElementById(ifc.id + '-ifc-description');
Expand Down

0 comments on commit bc17ef6

Please sign in to comment.