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

Franz Koch typo.removeformessage at fx-graefix.de
Mon Jun 29 18:23:04 CEST 2009


Hi,

> 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.

I just noticed that URLs without prepended http(s):// (f.e. 
www.domain.tld) do still get prepended with the current baseURL. Can 
anybody confirm this?

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------


More information about the TYPO3-team-core mailing list