An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

### sanitize

[![Build Status](https://travis-ci.org/casept/sanitize.svg?branch=master)](https://travis-ci.org/casept/sanitize)
[![Windows build status](https://ci.appveyor.com/api/projects/status/g63x9c9gl8b3cv4a?svg=true)](https://ci.appveyor.com/project/casept/sanitize)
[![Go Report Card](https://goreportcard.com/badge/github.com/casept/sanitize)](https://goreportcard.com/report/github.com/casept/sanitize)
[![Coverage Status](https://coveralls.io/repos/github/casept/sanitize/badge.svg?branch=master)](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.