X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fcompose.php;h=ae6a4900744ab27be516dc8420bc107545142e99;hp=639709134e14e4997e8dc25bf8522c55db5b70da;hb=117aa0c5efb1d91611d4071ed70f6342be6e8eda;hpb=6d9f22dba5d50ff55b8d6811412feedd3e534acf diff --git a/src/compose.php b/src/compose.php index 63970913..ae6a4900 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1063,7 +1063,8 @@ function getAttachments($message, &$composeMessage, $passed_id, $entities, $imap $filename = $message->getFilename(); break; } - $filename = str_replace(' ', ' ', decodeHeader($filename)); +//FIXME: added three args to the following, so as to set the last one to TRUE, to mimick a fix in 1.4.21 (#2994865), but didn't test this (note that in 1.4.21, the 2nd and 3rd args are FALSE, but here in this code, they weren't being specified (thus defaulting to TRUE), so I don't know if that means this code is outdated and should have been changed to FALSE, FALSE or if this code is completely different and the addition of the TRUE for arg #4 is wrong + $filename = str_replace(' ', ' ', decodeHeader($filename, true, true, true)); if (isset($languages[$squirrelmail_language]['XTRA_CODE']) && function_exists($languages[$squirrelmail_language]['XTRA_CODE'] . '_encode')) { $filename = call_user_func($languages[$squirrelmail_language]['XTRA_CODE'] . '_encode', $filename);