mirror of
https://github.com/golang/go
synced 2024-11-12 02:10:21 -07:00
doc/go1.7.html: net/mail.ParseAddress is stricter
Fixes #15940. Change-Id: Ie6da6fef235c6a251caa96d45f606c05d118a0ac Reviewed-on: https://go-review.googlesource.com/23710 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Travis Beatty <travisby@gmail.com> Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
92cd6e3af9
commit
7825ca6a63
@ -975,6 +975,15 @@ the address encoder, namely
|
||||
<a href="/pkg/net/mail/#Address.String"><code>String</code></a> method,
|
||||
continues to escape all UTF-8 text following <a href="https://tools.ietf.org/html/rfc5322">RFC 5322</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The <a href="/pkg/net/mail/#ParseAddress"><code>ParseAddress</code></a>
|
||||
function and
|
||||
the <a href="/pkg/net/mail/#AddressParser.Parse"><code>AddressParser.Parse</code></a>
|
||||
method are stricter.
|
||||
They used to ignore any characters following an e-mail address, but
|
||||
will now return an error for anything other than whitespace.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
<dl id="net/url"><a href="/pkg/net/url/">net/url</a></dl>
|
||||
|
Loading…
Reference in New Issue
Block a user