Commit ff6f2341 authored by Franco Fichtner's avatar Franco Fichtner

firewall: fix potential XSS

Spotted by: @fabianfrz
parent b1034aab
...@@ -231,7 +231,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -231,7 +231,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_aliases.php'); $referer = (isset($_SERVER['HTTP_REFERER']) ? html_safe($_SERVER['HTTP_REFERER']) : '/firewall_aliases.php');
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment