replacing urlencode with rawurlencode. It is possible that I've missed space
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 9 Jan 2005 17:01:42 +0000 (17:01 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 9 Jan 2005 17:01:42 +0000 (17:01 +0000)
encoding as plus issue when I've tested IE or older php versions does not have
such behaviour. Should fix bug #1076733.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8615 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index a2ff7c18133ff3c3da1f43023d71c7e579e9c474..09fc552c27b548e64a306f19efd3afe2a1949bcc 100644 (file)
@@ -2017,7 +2017,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX') {
      // version
      //set all the Cache Control Headers for IE
      if ($isIE) {
-         $filename=urlencode($filename);
+         $filename=rawurlencode($filename);
          header ("Pragma: public");
          header ("Cache-Control: no-store, max-age=0, no-cache, must-revalidate"); # HTTP/1.1
          header ("Cache-Control: post-check=0, pre-check=0", false);