diff --git a/core/imageboard/image.php b/core/imageboard/image.php index a6b5b7ff..7e8997cd 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -107,6 +107,7 @@ class Image public static function by_hash(string $hash): ?Image { global $database; + $hash = strtolower($hash); $row = $database->get_row("SELECT images.* FROM images WHERE hash=:hash", ["hash"=>$hash]); return ($row ? new Image($row) : null); }