From a8be2f2197f84f5427d6b5671470140af6280f02 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:28 +0200 Subject: [PATCH] no magic --- backend/php-mysql/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/php-mysql/index.php b/backend/php-mysql/index.php index 2227eb9..0b22287 100644 --- a/backend/php-mysql/index.php +++ b/backend/php-mysql/index.php @@ -162,9 +162,6 @@ function import() { $keyword = (isset($_GET["keyword"]) ? $_GET["keyword"] : ""); $keyword = mysqli_real_escape_string($DBHandler->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 @@ function import() { save: 501/201 import: 501/200 */ -?> \ No newline at end of file +?>