From 9fc7bb096a250f9ea19144100831a93c44f1e636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= <36200981+rickygzz@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:12:34 -0500 Subject: [PATCH] Update 20.php Replaced $pdo>mysql_real_escape_string($string) with $pdo->quote($string). --- 11/20.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11/20.php b/11/20.php index 68da3e0..c716497 100644 --- a/11/20.php +++ b/11/20.php @@ -7,6 +7,6 @@ function mysql_fix_string($pdo, $string) { if (get_magic_quotes_gpc()) $string = stripslashes($string); - return $pdo->real_escape_string($string); + return $pdo->quote($string); } ?>