From 22e0c2da64e606f9dc81be2ea5cd1f12ce51700d Mon Sep 17 00:00:00 2001 From: Nico Bouthoorn Date: Tue, 13 Aug 2024 11:52:39 +0200 Subject: [PATCH] Comment out get_magic_quotes_gpc, for php 8* --- backend/php-file/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/php-file/index.php b/backend/php-file/index.php index 054ce47..fe0f474 100644 --- a/backend/php-file/index.php +++ b/backend/php-file/index.php @@ -13,9 +13,9 @@ $keyword = "data/".basename($keyword); $f = fopen($keyword, "w"); $data = file_get_contents("php://input"); - if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { - $data = stripslashes($data); - } +// if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { +// $data = stripslashes($data); +// } fwrite($f, $data); fclose($f); header("HTTP/1.0 201 Created");