Fixed bug #10567: Added IE8+ support / Get rid of browser version dependent t3lib_div...
authorBenni Mack <benni.mack@typo3.org>
Tue, 31 Mar 2009 16:59:21 +0000 (16:59 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 31 Mar 2009 16:59:21 +0000 (16:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5250 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index e1526f3..5d64f01 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-03-31  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #10567: Added IE8+ support / Get rid of browser version dependent t3lib_div::clientInfo() (Thanks to Steffen Gebert)
        * #10717: Introduced a new function to t3lib_div::getMaxUploadFileSize() to have a central
          function to detect the maximum upload limit, was: No simple way to get the maximum 
          upload size in TYPO3
index b4aec4f..ac5ec6d 100644 (file)
@@ -3791,9 +3791,9 @@ final class t3lib_div {
                        $bInfo['BROWSER']= 'konqu';
                } elseif (strpos($useragent,'Opera') !== false) {
                        $bInfo['BROWSER']= 'opera';
-               } elseif (preg_match('/MSIE [4567]/', $useragent))      {
+               } elseif (strpos($useragent, 'MSIE') !== false) {
                        $bInfo['BROWSER']= 'msie';
-               } elseif (strpos($useragent,'Mozilla/4') !== false || strpos($useragent,'Mozilla/5') !== false) {
+               } elseif (strpos($useragent, 'Mozilla') !== false) {
                        $bInfo['BROWSER']='net';
                }
                if ($bInfo['BROWSER'])  {