Fix for bug # 1008534 (Attachments with spaces being converted to  )
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 22 Aug 2004 01:02:53 +0000 (01:02 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 22 Aug 2004 01:02:53 +0000 (01:02 +0000)
I don't believe this will have any other ramifications as I wouldn't expect filenames to contain HTML Entities.

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

src/download.php

index bf680771effe00fbfd984ad14f933c5b40bfa5e9..b6eafe32c6dff6a5729f88e21a13bc993c69aa46 100644 (file)
@@ -108,7 +108,7 @@ if (is_object($message->header->disposition)) {
     $filename = $header->getParameter('name');
 }
 
-$filename = decodeHeader($filename,true,true);
+$filename = decodeHeader($filename,true,false);
 $filename = charset_encode($filename,$default_charset,false);
 
 // If name is not set, use subject of email