Created
April 2, 2023 06:15
-
-
Save securitygab/948e45fe466685846085b717259ed04d to your computer and use it in GitHub Desktop.
Secure Snippet (PHP) against injections and protecting you're header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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