From 636bb99ad404c0744029200dbc046b65bcc8615b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 11 Sep 2008 10:21:37 +0000 Subject: Only encode headers with quoted-printable if really necessary --- it_mail.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_mail.class') 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; } /** -- cgit v1.2.3