Commit 14ea5293 authored by Marc Egger's avatar Marc Egger
Browse files

B Sanitize.php: fixes "Uninitialized string offset: 0" error

parent b1371ce0
Pipeline #1170 passed with stage
in 1 minute and 40 seconds
......@@ -264,7 +264,7 @@ class Sanitize {
public static function digitCheckAndCleanGet($key) {
if (isset($_GET[$key]) && !ctype_digit($_GET[$key])) {
if (ctype_digit($_GET[$key][0])) {
if (!empty($_GET[$key]) && ctype_digit($_GET[$key][0])) {
$_GET[$key] = $_GET[$key][0];
} else {
$_GET[$key] = '';
......
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