Comment out get_magic_quotes_gpc, for php 8*

This commit is contained in:
Nico Bouthoorn
2024-08-13 11:52:39 +02:00
parent 7bc8676206
commit 22e0c2da64
+3 -3
View File
@@ -13,9 +13,9 @@
$keyword = "data/".basename($keyword); $keyword = "data/".basename($keyword);
$f = fopen($keyword, "w"); $f = fopen($keyword, "w");
$data = file_get_contents("php://input"); $data = file_get_contents("php://input");
if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { // if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) {
$data = stripslashes($data); // $data = stripslashes($data);
} // }
fwrite($f, $data); fwrite($f, $data);
fclose($f); fclose($f);
header("HTTP/1.0 201 Created"); header("HTTP/1.0 201 Created");