alecpl
2008-09-05 5ec762a0850af60f8edd3d90abbf4aa9e4ae4d8c
-fixed r1733 change


1 files modified
2 ■■■ changed files
program/lib/Mail/mimePart.php 2 ●●● patch | view | raw | blame | history
program/lib/Mail/mimePart.php
@@ -397,7 +397,7 @@
        // 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}\"; ";