PHP 4.0 Bug #8481: imap_rfc822_parse_adrlist is too STRICT

From: Date: Fri, 29 Dec 2000 17:44:41 +0000
Subject: PHP 4.0 Bug #8481: imap_rfc822_parse_adrlist is too STRICT
Groups: php.dev 
Request: Send a blank email to php-dev+get-42525@lists.php.net to get a copy of this message
From: rxdev@serianet.com Operating system: Linux 2.2.18/Debian PHP version: 4.0.4 PHP Bug Type: IMAP related Bug description: imap_rfc822_parse_adrlist is too STRICT Imap_rfc822_parse_adrlist is too strict: if a double ,, is present in addresslist, then the parsing fails and stops (and gives various SYNTAX-ERROR/INVALID HOST) This is really annoying as many users type double ,, or even , , (a comma, a space, a comma) causing most of recipients to be dropped if Imap_rfc822_parse_adrlist is used. Example: imap_rfc822_parse_adrlist("smith,jeff,paul","foobar.com") WORKS -BUT- imap_rfc822_parse_adrlist("smith,,jeff,paul","foobar.com") DOES NOT WORK: only "smith" is extracted, BUT jeff and paul aren't Workaround: while exploding recipient list, just IGNORE empty recipient as if they didn't exist (and of course continue parsing) -- Edit Bug report at: http://bugs.php.net/?id=8481&edit=1

« previous php.dev (#42525) next »