Skip to content

Instantly share code, notes, and snippets.

View lucid281's full-sized avatar

Josh Francisco lucid281

View GitHub Profile
@lucid281
lucid281 / sanitize.py
Created March 20, 2018 16:52
Python function for sanitizing user supplied input
def sanitize(inputstr):
sanitized = inputstr
badstrings = [
';',
'$',
'&&',
'../',
'<',
'>',
'%3C',