summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-05-25 00:12:32 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-05-25 00:12:32 -0400
commitda11da09fdbe9f36ac516448121b3837cc1cfdb2 (patch)
tree38c2136638b6a926dcc3575eab51d6a9bb0f71ed
parent762248332be000bdc459c17f79c217d866fed6c5 (diff)
downloadbrdo-da11da09fdbe9f36ac516448121b3837cc1cfdb2.tar.gz
brdo-da11da09fdbe9f36ac516448121b3837cc1cfdb2.tar.bz2
Issue #1576300 by pwolanin: Fixed trim() expects parameter 1 to be string, array given in request_path() (line 2732 of bootstrap.inc).
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
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