]> Cypherpunks repositories - gostls13.git/commit
mime/quotedprintable: accept bytes >= 0x80
authorIan Lance Taylor <iant@golang.org>
Wed, 27 Jun 2018 00:14:43 +0000 (17:14 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Jun 2018 17:00:08 +0000 (17:00 +0000)
commit228b4416b7bb21158028714347dac07f06da789a
treed97acf9bbee72e87e81763a3f1337bdd21e776a9
parentb749845067a2f59d3ffa215b83286272d38398ca
mime/quotedprintable: accept bytes >= 0x80

RFC 2045 doesn't permit non-ASCII bytes, but some systems send them
anyhow. With this change, we accept them. This does make it harder to
validate quotedprintable data, but on balance this seems like the best
approach given the existence of systems that generate invalid data.

Fixes #22597

Change-Id: I9f80f90a60b76ada2b5dea658b8dc8aace56cdbd
Reviewed-on: https://go-review.googlesource.com/121095
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/mime/quotedprintable/reader.go
src/mime/quotedprintable/reader_test.go