diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 39452e0..8efa7b2 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2699,7 +2699,7 @@ function request_path() { return $path; } - if (isset($_GET['q'])) { + if (isset($_GET['q']) && is_string($_GET['q'])) { // This is a request with a ?q=foo/bar query string. $_GET['q'] is // overwritten in drupal_path_initialize(), but request_path() is called // very early in the bootstrap process, so the original value is saved in