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

Stig Nørgaard Færch snf at dkm.dk
Wed Jun 17 12:36:40 CEST 2009


Isn't it correct that on 4.1 the cache files of RTEhtmlarea resides in 
typo3temp/ and not typo3temp/rtehtmlarea/

/Stig

Oliver Hader skrev:
> Note:
> To test this RFC with your TYPO3 installation, please make sure to
> remove all cached files of RTEhtmlarea in typo3temp/rtehtmlare/.
> 
> 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


More information about the TYPO3-team-core mailing list