浏览代码

replacing urlencode with rawurlencode. It is possible that I've missed space
encoding as plus issue when I've tested IE or older php versions does not have
such behaviour. Should fix bug #1076733.

tokul 20 年之前
父节点
当前提交
0798207ff3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

@@ -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);