]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
path: add more examples for path.Clean
authorLouis Nyffenegger <louis.nyffenegger@gmail.com>
Sun, 6 Jul 2025 11:18:42 +0000 (11:18 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 25 Nov 2025 20:25:10 +0000 (12:25 -0800)
commita572d571fae7b269b8b7e3b8c6ec41c01cd0f25b
tree1236dd6641bcadf6a2fa3f49dde19bb91e376b5c
parenteec40aae4517affc52a110ea5b988eb297a67bf2
path: add more examples for path.Clean

Clarify that the function path.Clean only normalises paths and does not
protect against directory-traversal attacks.

Change-Id: I66f1267ac15900ac0cb6011ace0c79aabaebc68b
GitHub-Last-Rev: d669e1edf6221e7c8e0a9aa7bf46493c8ea85ba0
GitHub-Pull-Request: golang/go#74397
Reviewed-on: https://go-review.googlesource.com/c/go/+/684376
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
src/path/example_test.go