[TYPO3-core] RFC #8566: Unable to match TS condition when variable is not set

Michael Stucki michael at typo3.org
Tue Jul 15 15:25:03 CEST 2008


Martin Kutschker wrote:

> Michael Stucki schrieb:
>> Hi Dmitry,
>> 
>>> Branches: 4.1, 4.2, trunk
>>>
>>> Problem: The following perfectly valid condition does not match if
>>> "param" is not found in URL or if it is set to empty value in the URL:
>>>
>>> [globalVar = GP:param = /^$/]
>>>
>>> The problem is that t3lib_matchcondition::matchWild() requires non-empty
>>> string to test. No idea why but it does not make sense to have this
>>> restriction.
>>>
>>> Solution: remove check for non-empty value in the
>>> t3lib_matchcondition::matchWild().
>> 
>> +1 by reading. However, after reading your discussion with Masi, I'm not
>> sure if you plan to change the delimiter now? If that is the case, please
>> send an updated patch first, and make sure that // as delimiter will
>> still work...
> 
> Dmitry didn't like the dual delimiter approach. Any other opinions?

I would also like to use # and | as additional delimiters. But that can
still be done later, if you still like it.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list