Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save securitygab/948e45fe466685846085b717259ed04d to your computer and use it in GitHub Desktop.
Save securitygab/948e45fe466685846085b717259ed04d to your computer and use it in GitHub Desktop.
Secure Snippet (PHP) against injections and protecting you're header
// Securing against Header Injection
// CC: SecurityGab/Dengisan.nl
foreach($_POST as $key => $value){
$_POST[$key] = _cleaninjections(trim($value));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment