diff options
author | Russ Cox <rsc@golang.org> | 2009-04-07 00:40:07 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-04-07 00:40:07 -0700 |
commit | 97d4a4b92004136da40eab5d99bad180ae2fdb50 (patch) | |
tree | d99b97d1215df17d8a4f968eb03664bc6512dee7 /src/lib/syscall/file_linux.go | |
parent | 535a35c95c03d80dff4fbc560627ba40c37765f3 (diff) | |
download | golang-97d4a4b92004136da40eab5d99bad180ae2fdb50.tar.gz |
add path.Clean and other utilities.
use path.Clean in web server to sanitize URLs.
http://triv/go/../../../etc/passwd
no longer serves the password file.
it redirects to
http://triv/etc/passwd
which then gets a 404.
R=r
DELTA=288 (286 added, 0 deleted, 2 changed)
OCL=27142
CL=27152
Diffstat (limited to 'src/lib/syscall/file_linux.go')
0 files changed, 0 insertions, 0 deletions