]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10-security] cmd/go: reject 'get' of paths containing leading...
authorBryan C. Mills <bcmills@google.com>
Mon, 3 Dec 2018 20:12:08 +0000 (15:12 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 7 Dec 2018 14:47:30 +0000 (14:47 +0000)
commit90d609ba6156299642d08afc06d85ab770a03972
treebee4161eb8c64ecd8bcad61033b64b5b79d757eb
parent0a4a37f1f0a36e55d8ae5c34210a79499f9f2a9d
[release-branch.go1.10-security] cmd/go: reject 'get' of paths containing leading dots or unsupported characters

On some platforms, directories beginning with dot are treated as
hidden files, and filenames containing unusual characters can be
confusing for users to manipulate (and delete).

Change-Id: I443bdeb98e4de24b8a93a75fb923f4d41052e8f7
Reviewed-on: https://team-review.git.corp.google.com/c/368703
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/internal/get/get.go
src/cmd/go/internal/get/path.go [new file with mode: 0644]