note 77763 deleted from function.mysql-real-escape-string by nlopess
| From: | nlopess@php.net | Date: | Wed, 12 Sep 2007 10:31:39 +0000 |
| Subject: | note 77763 deleted from function.mysql-real-escape-string by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130413@lists.php.net to get a copy of this message | ||
Note Submitter: David Beck
----
<?php
function clean($unclean)
{
if (get_magic_quotes_gpc())
{
$unclean = stripslashes($unclean);
}
$clean = trim(@mysql_real_escape_string(htmlspecialchars($unclean, ENT_NOQUOTES)));
return $clean;
}
?>