Fixed note from last commit, but NOT tested, sorry not an Opera regular
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 30 Dec 2006 09:50:11 +0000 (09:50 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 30 Dec 2006 09:50:11 +0000 (09:50 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12014 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/template.php

index ded79f6871d2b7c5d3d69a35b88a5011d680b159..c6b46a11adf34761a2b864cfd8a610eef49bbc23 100644 (file)
@@ -47,8 +47,8 @@ $xhtml_end='';
         $browser = 'msie4';
         $dom_browser = false;
         $is_IE = true;
         $browser = 'msie4';
         $dom_browser = false;
         $is_IE = true;
-//FIXME: this fails for Opera because its user agent also contains MSIE
-    } elseif (stristr($browser_user_agent, "msie")) {
+    } elseif (stristr($browser_user_agent, "msie") 
+           && stristr($browser_user_agent, 'opera') === FALSE) {
         $browser = 'msie';
         $dom_browser = true;
         $is_IE = true;
         $browser = 'msie';
         $dom_browser = true;
         $is_IE = true;