summaryrefslogtreecommitdiff
path: root/it_mail.class
diff options
context:
space:
mode:
authorChristian Schneider2008-09-10 17:23:26 +0000
committerChristian Schneider2008-09-10 17:23:26 +0000
commit2b43b155e9274077462ae382bc13d9c9ae371a10 (patch)
tree014f12a0ab21846a12a9ca4350f89e0cc06866b9 /it_mail.class
parent1cb01b5f92afc254c9843a5f6a34f32da4e3cdcb (diff)
downloaditools-2b43b155e9274077462ae382bc13d9c9ae371a10.tar.gz
itools-2b43b155e9274077462ae382bc13d9c9ae371a10.tar.bz2
itools-2b43b155e9274077462ae382bc13d9c9ae371a10.zip
Also encode = in quoted printable (rfc2045 6.7.)
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 bc3a8c4..7a09085 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -316,7 +316,7 @@ function send()
*/
function header_escape($string)
{
- return preg_match('/[\x00-\x1f\x80-\xff]/', $string) ? ("=?iso-8859-1?Q?" . preg_replace('/[\x00-\x1f\x80-\xff]/e', "sprintf('=%02X', ord('\\0'))", $string) . "?=") : $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;
}
/**