[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)
committerXavier Perseguers <xavier@typo3.org>
Thu, 11 Aug 2011 15:04:14 +0000 (17:04 +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: Ia1ab2aa20aeb8fd6afaba581738f35678d5b05dd
Resolves: #27028
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/4273
Reviewed-by: Eric Chavaillaz
Tested-by: Eric Chavaillaz
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/jsfunc.tbe_editor.js

index a69165f..fe922ad 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) {