go/src/mime
Patrick Pelletier 1ef3a77e18 mime/multipart: allow boundary len <= 70
As per RFC 2046, the boundary for multipart MIME is allowed up to 70
characters. The old SetBoundary implementation only allowed up to 69 so
this bumps it to the correct value of 70.

The relevant RFC is at https://www.ietf.org/rfc/rfc2046.txt and section
5.1.1 defines the boundary specification.

Fixes #18793

Change-Id: I91d2ed4549c3d27d6049cb473bac680a750fb520
Reviewed-on: https://go-review.googlesource.com/35830
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-01 21:06:49 +00:00
..
multipart mime/multipart: allow boundary len <= 70 2017-02-01 21:06:49 +00:00
quotedprintable mime/quotedprintable: accept = not followed by 2 hex digits as literal equals 2016-10-28 16:08:06 +00:00
testdata
encodedword.go
encodedword_test.go
example_test.go
grammar.go
mediatype.go mime: preserve unnecessary backslash escapes as literals 2016-10-27 17:54:59 +00:00
mediatype_test.go mime: preserve unnecessary backslash escapes as literals 2016-10-27 17:54:59 +00:00
type.go
type_dragonfly.go
type_freebsd.go
type_openbsd.go
type_plan9.go
type_test.go
type_unix.go
type_windows.go