Bug #22683
closedExternal links are prepended with current domain
0%
Description
Assuming you are on the localhost, enter external link as http://something/?id=3. t3lib_parsehtml_proc will convert it to http://localhost/http://something/?id=3 when fetching from db back to RTE. The look of external URL is essential for this bug.
(issue imported from #M14436)
Files
Updated by Stanislas Rolland over 14 years ago
Hi Dmitry,
You get this behaviour when the domain "something" does not contain any dot?
Do you get the same behaviour when the domain name contains at least one dot?
Updated by Dmitry Dulepov over 14 years ago
Hi Stanislas!
Actually, both cases. The bug was first discovered for one of major Snowflake's customers. They had domains like 'aaa.bbb.ccc'. Then I reproduced it in my local testing environment. Locally I use short domain names like 't3test', 't3trunk' and so on. I did the patch, which we applied to get rid of this problem.
Do you see any problems with my patch? I'd be happy to adjust it as necessary.
Updated by Stanislas Rolland over 14 years ago
Hi Dmitry,
I think that if the url is not an email, nor a local file, then if it contains a scheme, it should be considered external.
Please test the attached patch against current trunk (TYPO3 4.4 beta3+).
Updated by Stanislas Rolland over 14 years ago
Hi Dmitry,
Did you try the attached patch in your environment?
Updated by Dmitry Dulepov over 14 years ago
Hi Stan! I do not get mail notifications from Mantis for some reason, so I did not see your questions. Sorry about that.
Yes, the patch helps! I was able to reproduce the issue. After applying the patch it is gone. Thank you very much!
Updated by Stanislas Rolland over 14 years ago
Hi Dmitry,
Please give your +1 in the core list.
Updated by Stanislas Rolland over 14 years ago
Committed to SVN TYPO3core trunk (revision 7960) and branch TYPO3_4-3 (revision 7961).