1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-13 09:01:59 +02:00

Fixes an issue with missing $_GET values while using SEF URLs.

This commit is contained in:
Cameron 2017-04-12 15:33:23 -07:00
parent ff61316f31
commit 9e91201103

View File

@ -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 <b>'.$plug.'</b> with key: <b>'.$k.'</b> matched <b>'.$v['regex'].'</b> and included: <b>'.$file.'</b> with $_GET: '.print_a($_GET,true),1);