1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Fix for missing debug info. e_MENU encoding issue corrected. Unsure how or when it started.

This commit is contained in:
Cameron
2015-01-20 17:01:57 -08:00
parent 25c43e84b2
commit 6b5a4f1094

View File

@@ -3311,7 +3311,8 @@ class e107
} }
} }
if (strpos($_SERVER['QUERY_STRING'], ']') && preg_match('#\[(.*?)](.*)#', $_SERVER['QUERY_STRING'], $matches)) $eMENUQry = str_replace(array('%5B','%5D'),array('[',']'),$_SERVER['QUERY_STRING']); //FIX for urlencoded QUERY_STRING without breaking the '+' used by debug.
if (strpos($eMENUQry, ']') && preg_match('#\[(.*?)](.*)#', $eMENUQry, $matches))
{ {
define('e_MENU', $matches[1]); define('e_MENU', $matches[1]);
$e_QUERY = $matches[2]; $e_QUERY = $matches[2];