From 152e55b5dbb82325efe7fe773ca5fe0b5766ddbd Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 10 Feb 2020 14:44:36 -0600 Subject: [PATCH] Changed Image::by_hash so that it isn't case-sensitive --- core/imageboard/image.php | 1 + 1 file changed, 1 insertion(+) 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); }