N°4899 - Reflected XSS on revert_dashboard operation

This commit is contained in:
Benjamin Dalsass
2022-05-17 09:27:06 +02:00
parent 59424c3126
commit 8e97279401
2 changed files with 11 additions and 6 deletions

View File

@@ -358,6 +358,11 @@ class utils
$retValue = preg_replace('/[^a-zA-Z0-9_]/', '', $value);
break;
// For URL
case 'url':
$retValue = filter_var($value, FILTER_SANITIZE_URL);
break;
default:
case 'raw_data':
$retValue = $value;