* Opera fix for the download headers from Ray Black III
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Apr 2001 23:43:18 +0000 (23:43 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Apr 2001 23:43:18 +0000 (23:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1317 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/download.php

index 0e9e9eedc2d71dafac35b02436d6a2abc6edf1cb..37cb370fdf76e819ed46b5d8d47273388428518b 100644 (file)
    }
    
    
+   // This function is verified to work with Netscape and the *very latest*
+   // version of IE.  I don't know if it works with Opera, but it should now.
    function DumpHeaders($type0, $type1, $filename, $force)
    {
       global $HTTP_USER_AGENT;
       
       $isIE = 0;
-      if (strstr($HTTP_USER_AGENT, 'compatible; MSIE ') !== false) {
+      if (strstr($HTTP_USER_AGENT, 'compatible; MSIE ') !== false &&
+          strstr($HTTP_USER_AGENT, 'Opera') === false) {
         $isIE = 1;
       }