From: jangliss Date: Thu, 19 Dec 2002 15:54:43 +0000 (+0000) Subject: Adjustment to the $attachment_common_type setup as Mozilla 1.x seems to use X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2051195302f0efd409060f57944177fa26b93b8a;p=squirrelmail.git 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. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4282 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/redirect.php b/src/redirect.php index 8ca31543..44ef3027 100644 --- a/src/redirect.php +++ b/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) {