Commit c8c72d5d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Config.php: more precise error message

parent 3923af69
Pipeline #1832 passed with stage
in 2 minutes and 10 seconds
...@@ -241,7 +241,7 @@ class Config { ...@@ -241,7 +241,7 @@ class Config {
$len = strlen($value); $len = strlen($value);
if ($len > $maxLength) { if ($len > $maxLength) {
$attack = true; $attack = true;
$reason .= "Get variable '$key' too long. Allowed: $maxLength, Length: $len - " . htmlentities($_GET[$key]) . PHP_EOL; $reason .= "Value of GET variable '$key' too long. Allowed: $maxLength, Length: $len. Value: '" . htmlentities($_GET[$key]) . "'" . PHP_EOL;
} }
} }
} }
......
Supports Markdown
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