Skip to content

Commit

Permalink
no magic
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Apr 28, 2023
1 parent 2f225b1 commit a8be2f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/php-mysql/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -217,4 +214,4 @@ function import() {
save: 501/201
import: 501/200
*/
?>
?>

0 comments on commit a8be2f2

Please sign in to comment.