diff options
author | alecpl <alec@alec.pl> | 2008-09-05 07:05:29 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-05 07:05:29 +0000 |
commit | 5ec762a0850af60f8edd3d90abbf4aa9e4ae4d8c (patch) | |
tree | 383b430e63b0a13795a59cabac1e305999ea9021 /program/lib/Mail | |
parent | e8a1b7ef8f7135a1c89f6d75fc30aefb1f3b1a22 (diff) |
-fixed r1733 change
Diffstat (limited to 'program/lib/Mail')
-rw-r--r-- | program/lib/Mail/mimePart.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Mail/mimePart.php b/program/lib/Mail/mimePart.php index a9385d715..bd3047724 100644 --- a/program/lib/Mail/mimePart.php +++ b/program/lib/Mail/mimePart.php @@ -397,7 +397,7 @@ class Mail_mimePart { // RFC 2183/2184/2822: // value needs encoding if contains non-ASCII chars or is longer than 78 chars - if (preg_match('#[\x20-\x7E]#', $value)) { // ASCII + if (!preg_match('#[^\x20-\x7E]#', $value)) { // ASCII $quoted = addcslashes($value, '\\"'); if (strlen($name) + strlen($quoted) + 6 <= $maxLength) return " {$name}=\"{$quoted}\"; "; |