aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 15:06:18 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 15:06:18 +0000
commitd8762b0932eb1aa43f70ae64ff7be750ce8b23c5 (patch)
tree34b69ee27a6cfbbd3a44fb9bc8ef55533a14dfae /engine/lib
parent446fb4233aa9301e560b4d8bbcef254adf61d7a2 (diff)
downloadelgg-d8762b0932eb1aa43f70ae64ff7be750ce8b23c5.tar.gz
elgg-d8762b0932eb1aa43f70ae64ff7be750ce8b23c5.tar.bz2
Added GET variable processing to the action handler.
git-svn-id: https://code.elgg.org/elgg/trunk@602 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/actions.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index 004943e12..f3d3c445b 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -25,6 +25,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]));
+ }
+ }
+ }
+ }
+
$forwarder = str_replace($CONFIG->url, "", $forwarder);
$forwarder = str_replace("http://", "", $forwarder);
$forwarder = str_replace("@", "", $forwarder);