pecl-mail-mailparse icon indicating copy to clipboard operation
pecl-mail-mailparse copied to clipboard

Fix #81403: mailparse_rfc822_parse_addresses drops escaped quotes

Open cmb69 opened this issue 4 years ago • 0 comments

A quoted-string may contain double-quotes if they are properly escaped, and we must not drop these.


I think the proper behavior would be to parse the address as "Smith, Robert "Bob"", but that would require a string copy; not sure whether this is desired. In addition, the bug reported expected "Smith, Robert \"Bob\"", and only noted that "The display string without escaping could also make sense." However, PR #3 explicitly wants unescaped quotes.

Also note that I regenerated php_mailparse_rfc822.c on Windows, while it might be better to regenerate the file on Linux with the same paths.

cmb69 avatar Sep 02 '21 10:09 cmb69