From e4937d081967f26ddbdeeaa0acbaa73b4b9dafe1 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 1 Mar 2021 18:47:45 -0800 Subject: [PATCH] Fixes #4427 - Also added test for diacritics in URL. --- e107_handlers/e107_class.php | 1 - e107_tests/tests/unit/e107Test.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 94a2df218..a9e893d58 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -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 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')) { define('e_QUERY', $e_QUERY); diff --git a/e107_tests/tests/unit/e107Test.php b/e107_tests/tests/unit/e107Test.php index 1d978994e..e6782c530 100644 --- a/e107_tests/tests/unit/e107Test.php +++ b/e107_tests/tests/unit/e107Test.php @@ -1947,7 +1947,7 @@ class e107Test extends \Codeception\Test\Unit $tests = array( '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', //FIXME Fails. + 'searchquery=šýá&mode=main' => 'searchquery=šýá&mode=main', ); foreach($tests as $input => $expected)