never allow {{ }} in user-input

This commit is contained in:
Michael Kaufmann 2024-05-10 17:23:25 +02:00
parent c07ff16274
commit 1a5680d2a8
No known key found for this signature in database
GPG Key ID: C121F97338D7A352

View File

@ -101,6 +101,9 @@ class Request
unset($value);
$antiXss = new AntiXSS();
$antiXss->addNeverAllowedRegex([
'{{(.*)}}' => ''
]);
// check $_GET
PhpHelper::cleanGlobal($_GET, $antiXss);