Comment out get_magic_quotes_gpc, for php 8*
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user