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
Showing
src/lib/path.go
0 → 100644
src/lib/path_test.go
0 → 100644
Please
register
or
sign in
to comment