https://github.com/casept/sanitize
A small golang library for detecting directory traversal attempts.
https://github.com/casept/sanitize
golang sanitize
Last synced: 5 months ago
JSON representation
A small golang library for detecting directory traversal attempts.
- Host: GitHub
- URL: https://github.com/casept/sanitize
- Owner: casept
- License: mit
- Created: 2018-01-11T19:28:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T21:33:45.000Z (over 8 years ago)
- Last Synced: 2024-06-20T12:01:10.779Z (almost 2 years ago)
- Topics: golang, sanitize
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### sanitize
[](https://travis-ci.org/casept/sanitize)
[](https://ci.appveyor.com/project/casept/sanitize)
[](https://goreportcard.com/report/github.com/casept/sanitize)
[](https://coveralls.io/github/casept/sanitize?branch=master)
This is just a simple golang library for checking user-supplied paths for attempts to perform directory traversal. See the [godoc](https://godoc.org/github.com/casept/sanitize) for details.
You probably should read the code before using this for anything actually security-sensitive. It has tests, but I'm fairly unexperienced at this programming thing. Caveat emptor.