From 37a1011c3250e524155f38c887b25ce95e750c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C5=BD=C3=A1ra?= Date: Fri, 28 Apr 2023 12:25:06 +0200 Subject: [PATCH] demo credentials, no magic --- backend/php-mysql/index.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/backend/php-mysql/index.php b/backend/php-mysql/index.php index 2227eb9..1a79836 100644 --- a/backend/php-mysql/index.php +++ b/backend/php-mysql/index.php @@ -1,10 +1,10 @@ getLink(), $keyword); $data = file_get_contents("php://input"); - if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { - $data = stripslashes($data); - } $data = mysqli_real_escape_string($DBHandler->getLink(), $data); $r = mysqli_query($DBHandler->getLink(), "SELECT * FROM ".TABLE." WHERE keyword = '".$keyword."'"); if (mysqli_num_rows($r) > 0) { @@ -217,4 +214,4 @@ save: 501/201 import: 501/200 */ -?> \ No newline at end of file +?>