[BUGFIX] Add encodeURIComponent to search parameter 91/42591/2
authorStephan Großberndt <stephan@grossberndt.de>
Thu, 13 Aug 2015 16:00:13 +0000 (18:00 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 15 Aug 2015 17:33:42 +0000 (19:33 +0200)
Encode search parameter to encode special characters

Resolves: #68400
Releases: master, 6.2
Change-Id: I991fd7c3855dbefd152792eb8888f09b3f22f597
Reviewed-on: http://review.typo3.org/42591
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/livesearch.js

index cfe3a6b..fa96cc6 100644 (file)
@@ -279,7 +279,7 @@ TYPO3.BackendLiveSearch = Ext.extend(Ext.form.ComboBox, {
        },
 
        getSearchResultsUrl : function(searchTerm) {
-               return 'id=' + this.searchResultsPid + '&search_levels=4&search_field=' + searchTerm;
+               return 'id=' + this.searchResultsPid + '&search_levels=4&search_field=' + encodeURIComponent(searchTerm);
        },
 
        handleBlur : function(e) {