$debug = false;
-if (isset($_SERVER['HTTP_ACCEPT']) &&
- !isset($attachment_common_types_parsed[$_SERVER['HTTP_ACCEPT']])) {
- attachment_common_parse($_SERVER['HTTP_ACCEPT'], $debug);
-}
if (isset($_SERVER['HTTP_ACCEPT']) &&
!isset($attachment_common_types_parsed[$_SERVER['HTTP_ACCEPT']])) {
attachment_common_parse($_SERVER['HTTP_ACCEPT'], $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) {