Follow-up to feature #9661: Re-enable matching empty globalVars
authorOliver Hader <oliver.hader@typo3.org>
Tue, 4 Nov 2008 15:45:32 +0000 (15:45 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 4 Nov 2008 15:45:32 +0000 (15:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4417 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_matchcondition.php

index 25e6c38..7ea9696 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        * Fixed bug #9599: felogin - Enable Caching "USER" instead of "USER_INT" (thanks to Dmitry Dulepov & Steffen Kamper)
        * Added feature #9661: Extend condition operators for globalVar (thanks to Steffen Kamper)
        * Cleanup: Specified deprecated statements
+       * Follow-up to feature #9661: Re-enable matching empty globalVars
 
 2008-11-03  Oliver Hader  <oliver@typo3.org>
 
index 0c1555c..da06732 100644 (file)
@@ -390,7 +390,7 @@ class t3lib_matchCondition {
        function testNumber($test, $leftValue) {
                $test = trim($test);
 
-               if (preg_match('/^(!?=+|<=?|>=?)\s*(.+)\s*$/', $test, $matches)) {
+               if (preg_match('/^(!?=+|<=?|>=?)\s*([^\s]*)\s*$/', $test, $matches)) {
                        $operator = $matches[1];
                        $rightValue = $matches[2];