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

Fixes #11666 - Trying to access array offset on value of type int. Sanitize.php

parent 43ce06a4
Pipeline #4338 failed with stages
in 2 minutes and 53 seconds
......@@ -290,7 +290,7 @@ class Sanitize {
public static function digitCheckAndCleanGet($key) {
if (isset($_GET[$key]) && !ctype_digit($_GET[$key])) {
if (!empty($_GET[$key]) && ctype_digit($_GET[$key][0])) {
if (!empty($_GET[$key]) && is_array($_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