From 9e91201103d2c318606679c04f43983660e96c1d Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 12 Apr 2017 15:33:23 -0700 Subject: [PATCH] Fixes an issue with missing $_GET values while using SEF URLs. --- index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 77481ecdf..2ac1e94ab 100644 --- a/index.php +++ b/index.php @@ -156,10 +156,17 @@ { $redirect = e107::getParser()->replaceConstants($newLocation); list($file,$query) = explode("?",$redirect,2); - + + $get = array(); if(!empty($query)) { - parse_str($query,$_GET); + parse_str($query,$get); + } + + + foreach($get as $gk=>$gv) + { + $_GET[$gk] = $gv; } e107::getDebug()->log('e_URL in '.$plug.' with key: '.$k.' matched '.$v['regex'].' and included: '.$file.' with $_GET: '.print_a($_GET,true),1);