diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-08 17:05:02 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-08 17:05:02 +0000 |
commit | 0767904f516fc29ab76807576763e2ff805a1483 (patch) | |
tree | 07a275dfafbb3c6d306e48570b3b584c0d668291 /engine/lib | |
parent | b016d37b4e4ad845b98599f5784e30fc696e3e29 (diff) | |
download | elgg-0767904f516fc29ab76807576763e2ff805a1483.tar.gz elgg-0767904f516fc29ab76807576763e2ff805a1483.tar.bz2 |
Closes #1111: Using substr instead of parse_url.
git-svn-id: https://code.elgg.org/elgg/trunk@3398 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/pagehandler.php | 8 |
1 files changed, 4 insertions, 4 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)) {
|