[TYPO3-core] RFC #9679: TYPO3 makes external URL wrong

Steffen Kamper info at sk-typo3.de
Thu Dec 18 21:37:00 CET 2008


Hi Dmitry,

i tested it before checking your patch. In my local system i have two 
branches of pages using different domain records.
Now i link from domain A to domain B (external url) - link is untouched 
after save (http://domainB)

Now i link to a page in Domain B - link is http://DomainA/index.php?id=xy
changing manually the source of the text (in RTE) to 
http://DomainB/index.php?id=xy, the link is correct and doesn't change 
with save.

What i expect: selecting a page in a branch with DomainB, the link 
should be generated with DomainB/index.php?id=xy. It's not logic imho 
that user has to make it external with writing complete domain.

vg Steffen

Dmitry Dulepov schrieb:
> Hi!
> 
> This is SVN patch request.
> 
> Type: bug
> 
> Branches: trunk, 4.2, 4.1
> 
> BT reference: http://bugs.typo3.org/view.php?id=9679
> 
> Problem: t3lib_parsehtml_proc::urlInfoForLinkTags() corrupts external URLs under certain conditions. For example, suppose you have two domains in the same installation: domainA and domainB. You are logged in to domainA (http://domainA/typo3/) but you edit page in the domainB (very real use case!). You insert an external URL to domainA (say, http://domainA/path/to/page). Next you save text in the RTE and look in FE. You will see that URL became linked to the domainB instead of domainA as you entered it (it becomes http://domainB/path/to/page). There is no way to avoid it except for relogin to another domain but then you get opposite links wrong (closed circle with no exit). The problem happens because the function in question attempts to change external URLs. External URLs must stay untouched because they are external! TYPO3 has no right to change them under any conditions.
> 
> Solution: modify function so that it does not change external URLs.
> 
> (I have a bad feeling that this patch will not be reviewed. But I am not willing to send it as FYI72 because it needs testing)
> 
> 


More information about the TYPO3-team-core mailing list