Security fix

This commit is contained in:
Tobias Reich 2014-02-17 22:21:05 +01:00
parent 92f94decd7
commit c86a61ca7b

View File

@ -13,7 +13,9 @@ function openGraphHeader($photoID) {
global $database;
$photoID = mysqli_real_escape_string($database, $photoID);
if (!is_numeric($photoID)) return false;
$result = $database->query("SELECT * FROM lychee_photos WHERE id = '$photoID';");
$row = $result->fetch_object();