Skip to content

Instantly share code, notes, and snippets.

@alchemycs
Created June 4, 2014 04:03
Show Gist options
  • Save alchemycs/45395e64da1ae0496805 to your computer and use it in GitHub Desktop.
Save alchemycs/45395e64da1ae0496805 to your computer and use it in GitHub Desktop.
Web input/output sanitisation test script
/*
This file is used to test any input that is also used as an output to ensure sanitisation has occured:
Usage: on any form input enter something like:
<script src="thisfile.js"></script>
*/
alert('If this alert box worked then you need to sanitise your output!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment