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

Oliver Hader oliver at typo3.org
Wed Nov 25 01:06:33 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.

Find attached a version using the FILTER_FLAG instead.
Looks good on my PHP 5.2.11, however, I'd like to know how it is
evaluated on e.g. PHP 5.2.6 - the version this bug was originally
reported for.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012581_followup.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091125/afc8ea44/attachment.bin>


More information about the TYPO3-team-core mailing list