[BUGFIX] Add encodeURIComponent to search parameter 57/41757/3
authorMarkus Sommer <markussom@posteo.de>
Mon, 20 Jul 2015 18:52:43 +0000 (20:52 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Jul 2015 20:28:32 +0000 (22:28 +0200)
Encode search parameter to encode special characters

Resolves: #68400
Releases: master, 6.2
Change-Id: I991fd7c3855dbefd152792eb8888f09b3f22f597
Reviewed-on: http://review.typo3.org/41757
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LiveSearch.js

index 9144c77..23766c5 100644 (file)
@@ -86,7 +86,7 @@ define('TYPO3/CMS/Backend/LiveSearch', ['jquery', 'jquery/autocomplete'], functi
                // set up the events
                $(containerSelector).on('click', '.t3js-live-search-show-all', function(evt) {
                        evt.preventDefault();
-                       TYPO3.ModuleMenu.App.showModule('web_list', 'id=0&search_levels=4&search_field=' + $(searchFieldSelector).val());
+                       TYPO3.ModuleMenu.App.showModule('web_list', 'id=0&search_levels=4&search_field=' + encodeURIComponent($(searchFieldSelector).val()));
                });
                $(containerSelector).on('click', '.dropdown-list-link', function(evt) {
                        evt.preventDefault();