mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Fixes #5005 GET values containing arrays are no longer corrupted.
This commit is contained in:
parent
10d59384a6
commit
c2bc635774
@ -5522,7 +5522,8 @@ class e107
|
||||
}
|
||||
|
||||
$eMENUQry = str_replace(array('%5B','%5D'),array('[',']'), $queryString); //FIX for urlencoded QUERY_STRING without breaking the '+' used by debug.
|
||||
if (strpos($eMENUQry, ']') && preg_match('#\[(.*?)](.*)#', $eMENUQry, $matches))
|
||||
|
||||
if (strpos($eMENUQry, ']') && preg_match('#^\[(.*?)](.*)#', $eMENUQry, $matches))
|
||||
{
|
||||
if(!defined('e_MENU'))
|
||||
{
|
||||
|
@ -1983,6 +1983,7 @@ class e107Test extends \Codeception\Test\Unit
|
||||
'mode=main&action=create' => 'mode=main&action=create',
|
||||
'[debug=counts!]mode=pref_editor&type=vstore' => 'mode=pref_editor&type=vstore',
|
||||
'searchquery=šýá&mode=main' => 'searchquery=šýá&mode=main',
|
||||
'mode=main&action=custom&other[key]=1' => 'mode=main&action=custom&other[key]=1',
|
||||
);
|
||||
|
||||
foreach($tests as $input => $expected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user