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

Martin Kuster mkuster81+typo3 at gmail.com
Wed Jun 17 13:34:45 CEST 2009


Hello,

Tested with 4.2.6/4.1.10 and the following firefox builds:
- 2.0.0.21
- 3.0.10
- 3.0.11
- latest 3.0.X trunk
- latest 3.5 trunk

Everything works fine and IDN domains are handled correctly in all 
combinations.
(Except that 3.5 renders IDN domains to ACE notation with 4.1.10, but 
that seems to be another issue)


So +1 from me.

Best regards
Martin Kuster



Oliver Hader wrote:
> 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
> 


More information about the TYPO3-team-core mailing list