1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Fixes #4427 - Also added test for diacritics in URL.

This commit is contained in:
Cameron
2021-03-01 18:47:45 -08:00
parent d9efdb9b5f
commit e4937d0819
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -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)