summaryrefslogtreecommitdiff
path: root/program/lib/Mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-10 08:06:00 +0000
committeralecpl <alec@alec.pl>2011-08-10 08:06:00 +0000
commit4c24246df6963941c0362254ed7daea13373b265 (patch)
treeae20e400d04a25bcb4c895ddf10a7f5ee6e8c55d /program/lib/Mail
parent8dd172a5b0e8050dc109b6bdb5850e5eef6d7a84 (diff)
- Mail_Mime-1.8.2
Diffstat (limited to 'program/lib/Mail')
-rw-r--r--program/lib/Mail/mimePart.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/program/lib/Mail/mimePart.php b/program/lib/Mail/mimePart.php
index 5674792b4..036ce74a2 100644
--- a/program/lib/Mail/mimePart.php
+++ b/program/lib/Mail/mimePart.php
@@ -145,7 +145,7 @@ class Mail_mimePart
* charset - Content character set
* cid - Content ID to apply
* disposition - Content disposition, inline or attachment
- * dfilename - Filename parameter for content disposition
+ * filename - Filename parameter for content disposition
* description - Content description
* name_encoding - Encoding of the attachment name (Content-Type)
* By default filenames are encoded using RFC2231
@@ -186,6 +186,11 @@ class Mail_mimePart
case 'body_file':
$this->_body_file = $value;
break;
+
+ // for backward compatibility
+ case 'dfilename':
+ $params['filename'] = $value;
+ break;
}
}
@@ -802,7 +807,7 @@ class Mail_mimePart
// Structured header (make sure addr-spec inside is not encoded)
if (!empty($separator)) {
// Simple e-mail address regexp
- $email_regexp = '(\S+|("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+"))@\S+';
+ $email_regexp = '(\S+|("[^\r\n"]+"))@\S+';
$parts = Mail_mimePart::_explodeQuotedString($separator, $value);
$value = '';