Skip to content

Commit

Permalink
Update confirm.php
Browse files Browse the repository at this point in the history
SQL Inject Patch
  • Loading branch information
Diesel-Hadez authored Sep 25, 2017
1 parent 63e9c9a commit 3f4160a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

include_once 'dbconnect.php';

$confirm_key = $_GET["key"];
$confirm_key = mysqli_real_escape_string($con,$_GET["key"]);

$check = mysqli_query($con, "SELECT email FROM confirm WHERE confirm_key = '$confirm_key'");
$row=mysqli_fetch_array($check,MYSQLI_ASSOC);
Expand All @@ -27,4 +27,4 @@
echo $msg;
}

?>
?>

0 comments on commit 3f4160a

Please sign in to comment.