From 0767904f516fc29ab76807576763e2ff805a1483 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 8 Jul 2009 17:05:02 +0000 Subject: Closes #1111: Using substr instead of parse_url. git-svn-id: https://code.elgg.org/elgg/trunk@3398 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/pagehandler.php | 8 ++++---- version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php index b993469d8..23594c5c7 100644 --- a/engine/lib/pagehandler.php +++ b/engine/lib/pagehandler.php @@ -24,15 +24,15 @@ set_context($handler); - $query = parse_url($_SERVER['REQUEST_URI']); - if (isset($query['query'])) { - parse_str($query['query'], $query_arr); + $query = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?')+1);//parse_url($_SERVER['REQUEST_URI']); + if (isset($query)) { + parse_str($query, $query_arr); if (is_array($query_arr)) { foreach($query_arr as $name => $val) { set_input($name, $val); } } - } + } $page = explode('/',$page); if (!isset($CONFIG->pagehandler) || empty($handler)) { diff --git a/version.php b/version.php index d77a46967..85b93c9de 100644 --- a/version.php +++ b/version.php @@ -13,7 +13,7 @@ * @link http://elgg.org/ */ - $version = 2009070601; // YYYYMMDD = Elgg Date + $version = 2009070801; // YYYYMMDD = Elgg Date // XX = Interim incrementer $release = '1.5'; // Human-friendly version name -- cgit v1.2.3