]> Cypherpunks repositories - gostls13.git/commit
cmd/go: do not reject internal double-dots in path elements
authorBryan C. Mills <bcmills@google.com>
Fri, 27 Sep 2019 17:03:07 +0000 (13:03 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 27 Sep 2019 17:28:24 +0000 (17:28 +0000)
commitdb87c9f2d0cc0e695bc7686bdcd04ea075b28deb
treeb90094ee5f8579a58c3fb7817de4223dd6c97b60
parent55738850c43bd1ae46326f7419dbd8f49808c776
cmd/go: do not reject internal double-dots in path elements

The relative path element ".." is already rejected
by the checks for leading and trailing dots.

Fixes #27299

Change-Id: Ia8ab543c93288cdc0615abd6d22521d44bc56d72
Reviewed-on: https://go-review.googlesource.com/c/go/+/197720
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/get/path.go
src/cmd/go/internal/module/module.go
src/cmd/go/internal/module/module_test.go