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 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/lib') 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)) { -- cgit v1.2.3