Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
Permalink
Browse files Browse the repository at this point in the history
Fixed SQL Injection Issues
  • Loading branch information
Jaydon Taylor committed Mar 26, 2017
1 parent c8adf52 commit b420f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.php
Expand Up @@ -5,7 +5,7 @@

include('common.php');
$con = mysqli_connect("$db_host","$db_user","$db_pass","$db_name");
$key = $_GET['key'];
$key = mysqli_real_escape_string($con, $_GET['key']);
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL. Make sure to edit the common.php file: " . mysqli_connect_error();
}
Expand Down

0 comments on commit b420f8c

Please sign in to comment.