[TYPO3-core] RFC: Bug #12581: Pagetree frame shows HTTP 404 error

Helmut Hummel helmut at typo3.org
Tue Nov 24 21:59:49 CET 2009


Hi,

Am 24.11.09 16:40, schrieb Oliver Hader:

> It seems that the PHP5 implementation of filter_var() concerning URLs is
> buggy on some releases. Relative URIs like '/typo3/whatever/script.php'
> are considered to be "valid URLs" there. To solve this behaviour a
> scheme check has been integrated.

What I understand from
http://bugs.php.net/bug.php?id=49403

is that it is the other way around:

'/typo3/whatever/script.php' is a valid URL unless you call filter_var 
with the flag FILTER_FLAG_SCHEME_REQUIRED

I any way, if you expect t3lib_div::isValidUrl to return true only when 
it is an "absolute" URL I suggest to put the scheme chek there and not 
in the if statement. Best would be do add the filter flag, I think.


Kind regards
Helmut


More information about the TYPO3-team-core mailing list