Просмотр исходного кода

* Opera fix for the download headers from Ray Black III

Tyler Akins 24 лет назад
Родитель
Сommit
047c305b98
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/download.php

+ 4 - 1
src/download.php

@@ -167,12 +167,15 @@
    }
    }
    
    
    
    
+   // 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)
    function DumpHeaders($type0, $type1, $filename, $force)
    {
    {
       global $HTTP_USER_AGENT;
       global $HTTP_USER_AGENT;
       
       
       $isIE = 0;
       $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;
         $isIE = 1;
       }
       }