Fix reflected XSS vulnerability

This commit is contained in:
Julian Merkle
2018-03-27 00:06:47 +02:00
parent 52747fdce7
commit de040b66a5

View File

@@ -129,7 +129,7 @@ if(isset($_POST['logfilter']) && in_array('debug', $_POST['logfilter'])) {
$inactivefilter .= "DEBUG,";
}
if(isset($_POST['logfilter'][0])) {
$filter2 = $_POST['logfilter'][0];
$filter2 = htmlspecialchars($_POST['logfilter'][0]);
$_SESSION[$rspathhex.'logfilter2'] = $filter2;
}