[TYPO3-core] RFC: #8205: Shortcut ends in parse_url-error
Steffen Kamper
steffen at sk-typo3.de
Mon Jun 16 11:47:19 CEST 2008
"Martin Kutschker" <martin.kutschker-no at spam-blackbox.net> schrieb im
Newsbeitrag
news:mailman.1.1213608611.19296.typo3-team-core at lists.netfielders.de...
> Steffen Kamper schrieb:
>
> I don't think it's correct to remove the host name arbitrarily from all
> arguents to the JS version of rawurlencode() in backend.php. If it must be
> removed (for whatever reason) then it must be removed before passing it to
> the function.
>
> Which remindes me that if you want to make the return URL relative to the
> TYPO3 backend it is not enough to remove the protocol/host as there might
> be a path prefix (eg http://my.domain/foo/bar/typo3). AFAIK the return
> URLs created from PHP are always URLs, so why should the JS version act
> differently?
>
> Masi
Hi Masi,
i compared the php-way and the JS-way, the only difference was the host
information, so i removed the host to be equal to php (php uses REQUEST_URI)
there is no way to remove it before, because it is build with
document.location which has the complete url, as there is no equivalent for
JS without the host information
vg Steffen
More information about the TYPO3-team-core
mailing list