]> Cypherpunks repositories - gostls13.git/commit
net/url: reject query values with semicolons
authorKatie Hockman <katie@golang.org>
Mon, 7 Jun 2021 18:29:43 +0000 (14:29 -0400)
committerKatie Hockman <katie@golang.org>
Wed, 9 Jun 2021 15:44:42 +0000 (15:44 +0000)
commite6dda19888180c5159460486d30c0412e4980748
tree27aec65d554d26ee8ac78c5a5b3904dcbe1737db
parent139e935d3cc8d38c9adc7ff7de8a87c28fe339c6
net/url: reject query values with semicolons

Semicolons are no longer valid separators, so
net/url.ParseQuery will now return an error
if any part of the query contains a semicolon.

net/http.(*Request).ParseMultipartForm has been
changed to fall through and continue parsing
even if the call to (*Request).ParseForm fails.

This change also includes a few minor refactors
to existing tests.

Fixes #25192

Change-Id: Iba3f108950fb99b9288e402c41fe71ca3a2ababd
Reviewed-on: https://go-review.googlesource.com/c/go/+/325697
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/net/http/request.go
src/net/http/request_test.go
src/net/http/server.go
src/net/url/example_test.go
src/net/url/url.go
src/net/url/url_test.go