From a6fa26577f89124c684edda113135a55b9f047b2 Mon Sep 17 00:00:00 2001 From: SecretR <secretr@e107.org> Date: Wed, 19 Mar 2014 15:08:29 +0200 Subject: [PATCH] Broken query string fix --- e107_handlers/application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index ed4277b28..71a5de2e6 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -3573,7 +3573,7 @@ class eRequest */ public function setLegacyQstring($qstring = null) { - if(defined('e_QUERY')) return $this;; + if(defined('e_QUERY')) return $this; if(null === $qstring) { @@ -3586,7 +3586,7 @@ class eRequest if(strpos(e_QUERY,"=")!==false ) // Fix for legacyQuery using $_GET ie. ?x=y&z=1 etc. { - parse_str(e_QUERY,$tmp); + parse_str(str_replace(array('&'), array('&'), e_QUERY),$tmp); foreach($tmp as $key=>$value) { $_GET[$key] = $value;