[TYPO3-core] RFC: Bug #12581: Pagetree frame shows HTTP 404 error
Oliver Hader
oliver at typo3.org
Wed Nov 25 00:47:20 CET 2009
Hi Helmut,
Helmut Hummel schrieb:
> 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.
Thanks for pointing that out.
Since I could not reproduce the behaviour with PHP 5.2.11, the easiest
way was to add the "hard" scheme check. I'm going to reopen the
bug-report and request feedback...
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list