]> Cypherpunks repositories - gostls13.git/commit
mime/multipart: restore 1.9 handling of missing/empty form-data file name
authorIan Lance Taylor <iant@golang.org>
Tue, 26 Jun 2018 22:57:35 +0000 (15:57 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 26 Jun 2018 23:56:13 +0000 (23:56 +0000)
commitf040e439cbf860244d2bd9d6808712b93c31c605
treec1f4572a6f11bac0d384a2e41bd6afa486ab8cdc
parent0436b162397018c45068b47ca1b5924a3eafdee0
mime/multipart: restore 1.9 handling of missing/empty form-data file name

Revert the code changes of CL 96975 and CL 70931, but keep the tests,
appropriately modified for the code changes. This restores the 1.9
handling of form-data entries with missing or empty file names.

Changing the handling of this simply confused existing programs for no
useful benefit. Go back to the old behavior.

Updates #19183
Fixes #24041

Change-Id: I4ebc32433911e6360b9fd79d8f63a6d884822e0e
Reviewed-on: https://go-review.googlesource.com/121055
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/mime/multipart/formdata.go
src/mime/multipart/formdata_test.go
src/mime/multipart/multipart.go