[TYPO3-core] RFC #8566: Unable to match TS condition when variable is not set
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Jul 15 16:38:32 CEST 2008
Hi!
Martin Kutschker wrote:
> Funnily this isn't what happens. The code looks for /../ and passes the
> WHOLE thing incl. the / provided by the user to regexp_match.
Not exactly... There are two cases:
- user string is wrapped into slashes - it is a regexp
- user string is not wrapped into slashes - than it is made a regexp
Example:
[globalVar = HTTP_HOST = www.*.com]
[globalVar = HTTP_HOST = /www\..*\.com/]
In the second case documentation means that expression is "www\..*\.com".
--
Dmitry Dulepov
TYPO3 Core team
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
More information about the TYPO3-team-core
mailing list