Skip to content

Instantly share code, notes, and snippets.

@steamboatid
steamboatid / sanitize.inc.php
Last active July 20, 2020 16:53
Paranoid input sanitizing in PHP
<?
///////////////////////////////////////
// sanitize.inc.php
// Sanitization functions for PHP
// by: Gavin Zuchlinski, Jamie Pratt, Hokkaido
// webpage: http://libox.net
// Last modified: September 27, 2003
//
// Many thanks to those on the webappsec list for helping me improve these functions
///////////////////////////////////////