8
ismailinjected
is_mail_injected
SYNOPSIS
is_mail_injected($mail)
DESCRIPTION
CODE
- function is_mail_injected($s) {
- $injections = array(
- '(\n+)',
- '(\r+)',
- '(\t+)',
- '(%0A+)',
- '(%0D+)',
- '(%08+)',
- '(%09+)'
- );
- $reg = implode('|', $injections);
- $reg = "/$reg/";
- return preg_match($reg, $s);
- }
Commentaires