mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixes #4427 - Also added test for diacritics in URL.
This commit is contained in:
@@ -5461,7 +5461,6 @@ class e107
|
|||||||
// e_QUERY SHOULD NOT BE DEFINED IF IN SNIGLE ENTRY MODE OR ALL URLS WILL BE BROKEN - it's defined later within the the router
|
// e_QUERY SHOULD NOT BE DEFINED IF IN SNIGLE ENTRY MODE OR ALL URLS WILL BE BROKEN - it's defined later within the the router
|
||||||
if(!deftrue("e_SINGLE_ENTRY"))
|
if(!deftrue("e_SINGLE_ENTRY"))
|
||||||
{
|
{
|
||||||
$e_QUERY = filter_var($e_QUERY, FILTER_SANITIZE_FULL_SPECIAL_CHARS); //FIXME Breaks non-latin chars: @see https://github.com/e107inc/e107/issues/719
|
|
||||||
if(!defined('e_QUERY'))
|
if(!defined('e_QUERY'))
|
||||||
{
|
{
|
||||||
define('e_QUERY', $e_QUERY);
|
define('e_QUERY', $e_QUERY);
|
||||||
|
@@ -1947,7 +1947,7 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
$tests = array(
|
$tests = array(
|
||||||
'mode=main&action=create' => 'mode=main&action=create',
|
'mode=main&action=create' => 'mode=main&action=create',
|
||||||
'[debug=counts!]mode=pref_editor&type=vstore' => 'mode=pref_editor&type=vstore',
|
'[debug=counts!]mode=pref_editor&type=vstore' => 'mode=pref_editor&type=vstore',
|
||||||
// 'searchquery=šýá&mode=main' => 'searchquery=šýá&mode=main', //FIXME Fails.
|
'searchquery=šýá&mode=main' => 'searchquery=šýá&mode=main',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($tests as $input => $expected)
|
foreach($tests as $input => $expected)
|
||||||
|
Reference in New Issue
Block a user