Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
0798207ff3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

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