commit - 680f8dffe5fcdf0192653fc09f1940b02cbe6fbd
commit + 258edc97f7211884ce460f8c5d443a242471f6bc
blob - 9a34a980f69783165cfe64334d900df9bd97626f
blob + 235d30c3d00146649b72b6ccb058f7196b6c4991
--- index.php
+++ index.php
function find_short($hash, $mysqli) {
$hash = mysqli_real_escape_string($mysqli, $hash);
- $result = mysqli_query($mysqli, "SELECT * FROM " . DB_TABLE . " WHERE id='$hash'") . "'");
+ $result = mysqli_query($mysqli, "SELECT * FROM " . DB_TABLE . " WHERE id='$hash'");
if ($row = mysqli_fetch_assoc($result)) {
$link = $row['url'];
mysqli_query($mysqli, "UPDATE " . DB_TABLE . " SET count='" . ($row['count'] + 1) . "' WHERE id='" . $row['id'] . "'");