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

Sebastian Böttger sebastian.boettger at gmail.com
Wed Jun 17 12:43:08 CEST 2009


+1 from me as non core member tested with 4.3alpha2

Best wishes
Sebastian


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
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/ 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core



More information about the TYPO3-team-core mailing list