From 8cd32eecb8a818a1c74232555dbf588a785fe9cd Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 Mar 2022 14:54:04 +0100 Subject: correctly escape commas --- 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 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++; -- cgit v1.2.3