13 lines
281 B
PHP
13 lines
281 B
PHP
<?php
|
|
function mysql_entities_fix_string($pdo, $string)
|
|
{
|
|
return htmlentities(mysql_fix_string($pdo, $string));
|
|
}
|
|
|
|
function mysql_fix_string($pdo, $string)
|
|
{
|
|
if (get_magic_quotes_gpc()) $string = stripslashes($string);
|
|
return $pdo->quote($string);
|
|
}
|
|
?>
|