From: tassium Date: Mon, 23 Dec 2002 17:14:41 +0000 (+0000) Subject: explode()ing on ', ' instead of ',' was breaking attachment_common_parse(). This... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c817138130223d73f95f24d06d63239e120d3e2;p=squirrelmail.git explode()ing on ', ' instead of ',' was breaking attachment_common_parse(). This prevented the entire HTTP_ACCEPT header from being parsed in some cases, which meant certain attachments did not have a "view" link. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4305 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/redirect.php b/src/redirect.php index 44ef3027..6a11d0e6 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -190,7 +190,7 @@ function attachment_common_parse($str, $debug) { */ $str = str_replace( ', ' , ',' , $str ); - $types = explode(', ', $str); + $types = explode(',', $str); foreach ($types as $val) { // Ignore the ";q=1.0" stuff