فهرست منبع

Adjustment to the $attachment_common_type setup as Mozilla 1.x seems to use
only a "," to seperate where as it used to (and IE still does) use ", ".
Slight modification to Darrell Wright idea, thanks.

jangliss 22 سال پیش
والد
کامیت
42861ea890
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      src/redirect.php

+ 8 - 0
src/redirect.php

@@ -182,6 +182,14 @@ function attachment_common_parse($str, $debug) {
     global $attachment_common_types, $attachment_common_types_parsed;
 
     $attachment_common_types_parsed[$str] = true;
+    
+    /* 
+     * Replace ", " with "," and explode on that as Mozilla 1.x seems to  
+     * use "," to seperate whilst IE, and earlier versions of Mozilla use
+     * ", " to seperate
+     */
+    
+    $str = str_replace( ', ' , ',' , $str );
     $types = explode(', ', $str);
 
     foreach ($types as $val) {