]> Cypherpunks repositories - gostls13.git/commit
net/mail: fixed quoted-local
authorMathiasB <git@denbeke.be>
Fri, 31 Jul 2015 10:25:06 +0000 (12:25 +0200)
committerRuss Cox <rsc@golang.org>
Fri, 31 Jul 2015 16:11:21 +0000 (16:11 +0000)
commitbd1efd50991deb1e11e10d8232f609f8b8d13aef
tree3f61df610f2342cf46443e22c7156074f7303466
parent782eea0190381b849e8e4b82bef46c1e3f281f97
net/mail: fixed quoted-local

Fixes some minor issues regarding quoted-string when parsing
the local-part.

Those strings should return an error:
- quoted-string without any content: `""@test.com`
- quoted-string containing tab: "\"\t\"@test.com"

Fixes #11293

Change-Id: Ied93eb6831915c9b1f8e727cea14168af21f8d3b
Reviewed-on: https://go-review.googlesource.com/12905
Reviewed-by: Russ Cox <rsc@golang.org>
src/net/mail/message.go
src/net/mail/message_test.go