[TYPO3-core] RFC Bug #11009: External Links get prepended with http://typo3 in the RTEhtmlarea in Firefox 3.0.11/3.5b4

Oliver Hader oliver at typo3.org
Thu Jun 18 09:19:19 CEST 2009


FYI: Committed to SVN:
* TYPO3_4-1 (rev. 5597) --> TYPO3 4.1.11
* TYPO3_4-2 (rev. 5598) --> TYPO4 4.2.7
* Trunk (rev. 5599) --> TYPO3 4.3-beta1

olly


Oliver Hader schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11009
> https://bugzilla.mozilla.org/show_bug.cgi?id=481647
> 
> Branches: TYPO3_4-1, TYPO3_4-2, Trunk
> 
> Problem:
> Since the release of Firefox 3.0.11 external links get prepended by the
> current base URL and produce a wrong URL in the RTEhtmlarea.
> For example an external link to "http://www.google.de/" becomes
> "http://website.com/typo3/http://www.google.de/".
> 
> Solution:
> In RFC #9196 a special handling for IDN domains in Firefox (e.g.
> "www.müller.de") was integrated - the link was encoded by using
> encodeURIComponent(). However, in Firefox 3.0.11 internal frames use
> something similar to a base URL that automatically prepends relative URLs.
> Since encodeURIComponent() escapes "http://" to "http%3A%2F%2F" the link
> is recognized as relative URL. Using encodeURI() instead works since
> "://" will not be encoded.
> encodeURI() still solves the mentioned issue of RFC #9196 for IDN
> domains. Thus, everything should be fine again.
> 
> Notes:
> Thanks to everybody investigating this issue.
> Attached is a patch for TYPO3 4.1 (with a compressed script) and another
> patch for TYPO3 4.2 & 4.3.
> 
> olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list