Updates
This commit is contained in:
@@ -49,9 +49,7 @@
|
|||||||
|
|
||||||
$var = strip_tags($var);
|
$var = strip_tags($var);
|
||||||
$var = htmlentities($var);
|
$var = htmlentities($var);
|
||||||
|
$var = stripslashes($var);
|
||||||
if (get_magic_quotes_gpc())
|
|
||||||
$var = stripslashes($var);
|
|
||||||
|
|
||||||
$result = $pdo->quote($var); // This adds single quotes
|
$result = $pdo->quote($var); // This adds single quotes
|
||||||
return str_replace("'", "", $result); // So now remove them
|
return str_replace("'", "", $result); // So now remove them
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -49,9 +49,7 @@
|
|||||||
|
|
||||||
$var = strip_tags($var);
|
$var = strip_tags($var);
|
||||||
$var = htmlentities($var);
|
$var = htmlentities($var);
|
||||||
|
$var = stripslashes($var);
|
||||||
if (get_magic_quotes_gpc())
|
|
||||||
$var = stripslashes($var);
|
|
||||||
|
|
||||||
$result = $pdo->quote($var); // This adds single quotes
|
$result = $pdo->quote($var); // This adds single quotes
|
||||||
return str_replace("'", "", $result); // So now remove them
|
return str_replace("'", "", $result); // So now remove them
|
||||||
|
|||||||
Reference in New Issue
Block a user