Skip to content
Permalink
Browse files Browse the repository at this point in the history
luci-app-firewall: fix stored XSS in rule- and forward detail pages
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2a143f4)
  • Loading branch information
jow- committed Sep 13, 2019
1 parent 14d2f9b commit c048f23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -25,7 +25,7 @@ else
if not name or #name == 0 then
name = translate("(Unnamed Entry)")
end
m.title = "%s - %s" %{ translate("Firewall - Port Forwards"), name }
m.title = "%s - %s" %{ translate("Firewall - Port Forwards"), luci.util.pcdata(name) }
end

s = m:section(NamedSection, arg[1], "redirect", "")
Expand Down
Expand Up @@ -44,7 +44,7 @@ elseif rule_type == "redirect" then
name = "SNAT %s" % name
end

m.title = "%s - %s" %{ translate("Firewall - Traffic Rules"), name }
m.title = "%s - %s" %{ translate("Firewall - Traffic Rules"), luci.util.pcdata(name) }

local wan_zone = nil

Expand Down

0 comments on commit c048f23

Please sign in to comment.