aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/pagehandler.php8
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)) {