|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-08-31 16:36 UTC] kcochran at trolans dot net
Description:
------------
Mailparse 3.1.1
Appears embedded quoted strings simply lose their "s when processed by mailparse_rfc822_parse_addresses.
Test script:
---------------
<?php
var_dump(mailparse_rfc822_parse_addresses('"Smith, Robert \"Bob\"" <user@domain.org>'));
Expected result:
----------------
array(1) {
[0] =>
array(3) {
'display' =>
string(21) "Smith, Robert \ Bob\ "
'address' =>
string(15) "user@domain.org"
'is_group' =>
bool(false)
}
}
Actual result:
--------------
array(1) {
[0] =>
array(3) {
'display' =>
string(21) "Smith, Robert \"Bob\""
'address' =>
string(15) "user@domain.org"
'is_group' =>
bool(false)
}
}
The display string without escaping could also make sense.
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Yes, this behavior is definetely wrong; I think it should be 'display' => string(19) "Smith, Robert "Bob""