36
protectmail
protect_mail
SYNOPSIS
protect_mail($s)
DESCRIPTION
CODE
- function protect_mail($s) {
- $injections = array(
- '(\n+)',
- '(\r+)',
- '(\t+)',
- '(%0A+)',
- '(%0D+)',
- '(%08+)',
- '(%09+)'
- );
- $reg = implode('|', $injections);
- $reg = "/$reg/";
- return preg_replace($reg, '' ,$s);
- }
Commentaires