[BUGFIX] Wrong usage of Ext.encodeURL in TBE_EDITOR.rawurlencode
authorMarco Huber <mail@marco-huber.de>
Thu, 2 Jun 2011 19:22:23 +0000 (21:22 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Fri, 8 Jul 2011 08:22:37 +0000 (10:22 +0200)
If we want to use Ext.encodeURL() here, we have to change many other
things, too. Better use encodeURIComponent() here.
Ext.encodeURL() was introduced with #25350.

Change-Id: I1f5df4abe014e61ac463d5c12b9c240a6f2b7ccc
Resolves: #27028
Reviewed-on: http://review.typo3.org/2509
Reviewed-by: Stefan Neufeind
Reviewed-by: Stefan Aebischer
Tested-by: Stefan Aebischer
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/jsfunc.tbe_editor.js

index ec7bc8c..2315aad 100644 (file)
@@ -538,7 +538,7 @@ var TBE_EDITOR = {
        rawurlencode: function(str,maxlen) {
                var output = str;
                if (maxlen)     output = output.substr(0,200);
-               output = Ext.urlEncode({'' : output});
+               output = encodeURIComponent(output);
                return output;
        },
        str_replace: function(match,replace,string) {