Fixed bug #14692: t3lib_utility_client is not working with php 5.2.0 (Thanks to Franz...
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 10 Jun 2010 19:39:31 +0000 (19:39 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 10 Jun 2010 19:39:31 +0000 (19:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7871 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/utility/class.t3lib_utility_client.php

index 9ceaad0..dc7715b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
 
        * Follow-up to issue #14662: htmlArea RTE: Should use t3lib_utility_Client::getBrowserInfo
        * Fixed bug #14691: htmlArea RTE: Hitting ENTER in absence of block element may produce non-valid html in non-IE browser
+       * Fixed bug #14692: t3lib_utility_client is not working with php 5.2.0 (Thanks to Franz Koch)
 
 2010-06-10  Dmitry Dulepov  <dmitry.dulepov@gmail.com>
 
index 4eca1f5..0e89749 100644 (file)
@@ -71,7 +71,7 @@ final class t3lib_utility_Client {
                                'lynx', 'amaya', 'omniweb', 'avant', 'camino', 'flock', 'aol');
                $matches = array();
 
-               $pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9]+(?:\.[0-9]+)?)#';
+               $pattern = '#(?P<browser>' . join('|', $known) . ')[/ ]+(?P<version>[0-9]+(?:\.[0-9]+)?)#';
                        // Find all phrases (or return empty array if none found)
                if (!preg_match_all($pattern, strtolower($userAgent), $matches)) {
                        $browserInfo['browser'] = 'unknown';