Issue Bug Closed

#14281Opera can be detected as Internet explorer

Sebastian Kurfuerst 08/22/04, 16:51 updated 09/19/04, 22:58

Description

When Opera is in stealth mode, it will be identified as MSIE in Typo3, because in t3lib_matchcondition.php , it is first checked for IE and then for Opera.
The browser identification string of Opera in MSIE Mode is:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23

IE6 uses: Internet Explorer 6: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

At the moment, it is first checked for IE, and direclty afterwards for Opera. When we turn this around, Opera in Stealth mode is correctly identified as Opera, and IE is identified as IE (because IE doesn’t have Opera in the browser identification string, there shouldn’t be any problem)

Here is my proposed change:

if(strstr($useragent,‘Opera’))    {
$browserInfo[‘browser’]=‘opera’;
} elseif (strstr($useragent,‘MSIE’)) {
$browserInfo[‘browser’]=‘msie’;
(issue imported from #M302)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.