diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-05 07:05:29 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-05 07:05:29 +0000 |
| commit | add0b05da6b9279d3e6442ee4c48c0c37372be5c (patch) | |
| tree | 369707168cdb7b8ca17d1cc28767e07492894872 /roundcubemail/program/lib | |
| parent | 1e15ac954c1fd2d32d25902ef631b941306a636a (diff) | |
-fixed r1733 change
git-svn-id: https://svn.roundcube.net/trunk@1734 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/Mail/mimePart.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/Mail/mimePart.php b/roundcubemail/program/lib/Mail/mimePart.php index a9385d715..bd3047724 100644 --- a/roundcubemail/program/lib/Mail/mimePart.php +++ b/roundcubemail/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}\"; "; |
