Fixed bug #11009: External Links get prepended with http://typo3 in the RTEhtmlarea...
authorOliver Hader <oliver.hader@typo3.org>
Thu, 18 Jun 2009 07:17:46 +0000 (07:17 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 18 Jun 2009 07:17:46 +0000 (07:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5599 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js

index b4e50c7..435f352 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-18  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #11009: External Links get prepended with http://typo3 in the RTEhtmlarea in Firefox 3.0.11/3.5b4
+
 2009-06-15  Ingo Renner  <ingo@typo3.org>
 
        * Updated the caching framework to the according FLOW3 revision 2616
index 20adeda..646c7f0 100644 (file)
@@ -178,7 +178,7 @@ TYPO3Link = HTMLArea.Plugin.extend({
                        this.editor._doc.execCommand("UnLink", false, null);
                }
                if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
-                       this.editor._doc.execCommand("CreateLink", false, encodeURIComponent(theLink));
+                       this.editor._doc.execCommand("CreateLink", false, encodeURI(theLink));
                } else {
                        this.editor._doc.execCommand("CreateLink", false, theLink);
                }
@@ -272,7 +272,7 @@ TYPO3Link = HTMLArea.Plugin.extend({
                                        }
                                }
                                if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
-                                       node.href = decodeURIComponent(node.href);
+                                       node.href = decodeURI(node.href);
                                }
                                if (cur_target.trim()) node.target = cur_target.trim();
                                        else node.removeAttribute("target");