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

Oliver Hader oliver at typo3.org
Wed Nov 25 13:09:53 CET 2009


FYI: Committed to SVN:
* TYPO3_4-2 (rev. 6529)
* Trunk (rev. 6530)

olly


Oliver Hader schrieb:
> 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


More information about the TYPO3-team-core mailing list