]> Cypherpunks repositories - gostls13.git/commit
net/mail: allow empty quoted string name in address again
authorRuss Cox <rsc@golang.org>
Wed, 26 Oct 2016 20:48:53 +0000 (16:48 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 27 Oct 2016 17:54:39 +0000 (17:54 +0000)
commit2bafbe11b1389c3a589314b74ab24f936816befb
tree75a35e4141e9b2e4d6c8fd6ea0dd1b1a88491025
parent07e72666ec6da774860c6f796c3adbdc57c92480
net/mail: allow empty quoted string name in address again

CL 12905 disallowed "Bob" <""@example.com> but inadvertently
also disallowed "" <bob@example.com>. Move the empty string
check to apply only in the addr-spec.

Fixes #14866.

Change-Id: Ia0b7a1a32810aa78157ae77bd0130b78154c460d
Reviewed-on: https://go-review.googlesource.com/32176
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/mail/message.go
src/net/mail/message_test.go