From da11da09fdbe9f36ac516448121b3837cc1cfdb2 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Fri, 25 May 2012 00:12:32 -0400 Subject: Issue #1576300 by pwolanin: Fixed trim() expects parameter 1 to be string, array given in request_path() (line 2732 of bootstrap.inc). --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 4999113ad..d9f5aa1d8 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 -- cgit v1.2.3