Skip to content
Browse files

- Fixed Bug #17178: Mail_RFC822::parseAddressList does not accept RFC…

…-valid empty-group syntax

git-svn-id: http://svn.php.net/repository/pear/packages/Mail/trunk@307491 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 37e2904 commit 407e2129f2b0a280119446d3f1ebdf908b8ffde0 Aleksander Machniak committed Jan 14, 2011
Showing with 2 additions and 8 deletions.
  1. +0 −8 Mail/RFC822.php
  2. +2 −0 package.xml
View
8 Mail/RFC822.php
@@ -483,14 +483,6 @@ function _validateAddress($address)
$addresses[] = $address['address'];
}
- // Check that $addresses is set, if address like this:
- // Groupname:;
- // Then errors were appearing.
- if (!count($addresses)){
- $this->error = 'Empty group.';
- return false;
- }
-
// Trim the whitespace from all of the address strings.
array_map('trim', $addresses);
View
2 package.xml
@@ -40,6 +40,7 @@ Fixed Bug #18109: New "pipelining" parameter for SMTP backend never used [alec]
Fixed Bug #17317: Invalid periods in mailbox not marked as invalid [alec]
Fixed Bug #17388: Deprecated assigning the return value of new by reference [alec]
Fixed Bug #17866: Non-static method Mail_RFC822::parseAddressList called statically [alec]
+Fixed Bug #17178: Mail_RFC822::parseAddressList does not accept RFC-valid empty-group syntax [alec]
</notes>
<contents>
<dir baseinstalldir="/" name="/">
@@ -54,6 +55,7 @@ Fixed Bug #17866: Non-static method Mail_RFC822::parseAddressList called statica
<file baseinstalldir="/" md5sum="d66aa2a2f0bfe33f8a67d749a1a4d345" name="tests/9137.phpt" role="test" />
<file baseinstalldir="/" md5sum="75d10361f686f1cc16637a9364e3eab7" name="tests/9137_2.phpt" role="test" />
<file baseinstalldir="/" md5sum="3659ceda2b94b66892869fa1ca12ada1" name="tests/13659.phpt" role="test" />
+ <file baseinstalldir="/" md5sum="e99f00d8f07232e0f129dd77ae9699c7" name="tests/bug17178.phpt" role="test" />
<file baseinstalldir="/" md5sum="c2036980390981cd6b89c1e5c903913e" name="tests/bug17317.phpt" role="test" />
<file baseinstalldir="/" md5sum="bbd88a5dfb0536a8c66ba07a1fbda382" name="tests/rfc822.phpt" role="test" />
<file baseinstalldir="/" md5sum="48a2349660b104b77ad9c42daac809c8" name="tests/smtp_error.phpt" role="test" />

0 comments on commit 407e212

Please sign in to comment.
Something went wrong with that request. Please try again.