diff options
author | Urban Müller | 2022-03-15 14:54:04 +0100 |
---|---|---|
committer | Urban Müller | 2022-03-15 14:54:04 +0100 |
commit | 8cd32eecb8a818a1c74232555dbf588a785fe9cd (patch) | |
tree | b5a7fa1d7ac1dda89f107e1fea6aa2e9f38eea90 /it_mail.class | |
parent | 657a41ee4f670a4ac58ebb11b0decbd253889688 (diff) | |
download | itools-8cd32eecb8a818a1c74232555dbf588a785fe9cd.tar.gz itools-8cd32eecb8a818a1c74232555dbf588a785fe9cd.tar.bz2 itools-8cd32eecb8a818a1c74232555dbf588a785fe9cd.zip |
correctly escape commas
Diffstat (limited to 'it_mail.class')
-rw-r--r-- | it_mail.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class index 470ddce..0705c15 100644 --- a/it_mail.class +++ b/it_mail.class @@ -411,7 +411,7 @@ static function send_smtp_cmd($fp, $cmd, &$answer, $timeoutok = false, $failcode static function address_error($addresses) { foreach (str_split($addresses) as $char) - { + { $quoted = $char == '"' ? !$quoted : $quoted; if ($char == ',' && !$quoted) $n++; |