projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get the filename from the properties if no disposition information is
[squirrelmail.git]
/
src
/
download.php
diff --git
a/src/download.php
b/src/download.php
index 1be2b9ebf91a91538c9f97b90802554b136a4ae3..8e9ed13c9a76b36e5559689753ab4350f40c9112 100644
(file)
--- a/
src/download.php
+++ b/
src/download.php
@@
-92,7
+92,10
@@
if (is_object($message->header->disposition)) {
if (!$filename) {
$filename = decodeHeader($header->getParameter('name'));
}
+} else {
+ $filename = decodeHeader($header->getParameter('name'));
}
+
if (strlen($filename) < 1) {
if ($type1 == 'plain' && $type0 == 'text') {
$suffix = 'txt';