diff options
Diffstat (limited to 'engine/lib/pagehandler.php')
-rw-r--r-- | engine/lib/pagehandler.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php index b5bb831db..267d34bd2 100644 --- a/engine/lib/pagehandler.php +++ b/engine/lib/pagehandler.php @@ -22,6 +22,21 @@ global $CONFIG;
+ $query = parse_url($_SERVER['REQUEST_URI']);
+ if (isset($query['query'])) {
+ $query = $query['query'];
+ $query = rawurldecode($query);
+ $query = explode('&',$query);
+ if (sizeof($query) > 0) {
+ foreach($query as $queryelement) {
+ $vals = explode('=',$queryelement);
+ if (sizeof($vals) > 1) {
+ set_input(trim($vals[0]),trim($vals[1]));
+ }
+ }
+ }
+ }
+
$page = explode('/',$page);
if (!isset($CONFIG->pagehandler) || empty($handler)) {
$result = false;
@@ -38,7 +53,7 @@ if (!$result) {
$result = default_page_handler($page, $handler);
}
- if ($result !== false) $result = true;
+ if ($result !== false) $result = true;
return $result;
|