]> Cypherpunks repositories - gostls13.git/commit
net/mail: do not parse RFC 2047 tokens in quoted strings
authorRuss Cox <rsc@golang.org>
Thu, 3 Dec 2015 21:00:04 +0000 (16:00 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2015 16:11:09 +0000 (16:11 +0000)
commite8cc083ede9120c70b9d38b603ba07b3e62bd95d
tree25b02b419b587f5998388102814b64e59027bd04
parent6f6b2f04b5c342edf70944e60c9c9a30eef5a9eb
net/mail: do not parse RFC 2047 tokens in quoted strings

RFC 2047 tokens like =?utf-8?B?whatever?= can only appear
unquoted, but this code was trying to decode them even when
they came out of quoted strings. Quoted strings must be left alone.

Fixes #11294.

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