2

ismailinjected

is_mail_injected
SYNOPSIS

is_mail_injected($mail)

DESCRIPTION
CODE
  1. function is_mail_injected($s) {
  2.     $injections = array(
  3.     '(\n+)',
  4.     '(\r+)',
  5.     '(\t+)',
  6.     '(%0A+)',
  7.     '(%0D+)',
  8.     '(%08+)',
  9.     '(%09+)'
  10.     );
  11.     $reg = implode('|', $injections);
  12.     $reg = "/$reg/";
  13.  
  14.     return preg_match($reg, $s);
  15. }
SEE ALSO

ismailallowed, protectmail

Comments

To add a comment, click here.