summaryrefslogtreecommitdiff
path: root/it_mail.class
diff options
context:
space:
mode:
authorChristian Schneider2008-09-11 10:21:37 +0000
committerChristian Schneider2008-09-11 10:21:37 +0000
commit636bb99ad404c0744029200dbc046b65bcc8615b (patch)
tree18b523721b898e0df75e6fe4acbd2c0dca4d1f36 /it_mail.class
parent974c9e392c6571786a8d13f3948232b1305042d6 (diff)
downloaditools-636bb99ad404c0744029200dbc046b65bcc8615b.tar.gz
itools-636bb99ad404c0744029200dbc046b65bcc8615b.tar.bz2
itools-636bb99ad404c0744029200dbc046b65bcc8615b.zip
Only encode headers with quoted-printable if really necessary
Diffstat (limited to 'it_mail.class')
-rw-r--r--it_mail.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index 9057ef3..dedf950 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -296,7 +296,7 @@ function send()
*/
function header_escape($string)
{
- return preg_match('/[\x00-\x20=\x7f-\xff]/', $string) ? ("=?iso-8859-1?Q?" . preg_replace('/[\x00-\x20=\x7f-\xff]/e', "sprintf('=%02X', ord('\\0'))", $string) . "?=") : $string;
+ return preg_match('/[\x00-\x1f\x7f-\xff]/', $string) ? ("=?iso-8859-1?Q?" . preg_replace('/[\x00-\x20=\x7f-\xff]/e', "sprintf('=%02X', ord('\\0'))", $string) . "?=") : $string;
}
/**