From df4a36ecc57e4a30da40cd0208d5bdaec6dbdf5f Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Fri, 11 Feb 2022 13:20:52 +0100 Subject: [PATCH] Use Full Path for Thumbnail Generation --- lib/thumbs.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thumbs.class.php b/lib/thumbs.class.php index 89880c2..0de9890 100644 --- a/lib/thumbs.class.php +++ b/lib/thumbs.class.php @@ -39,7 +39,7 @@ class thumb { public function get_thumb($iname) { $src = $this->imagedir.$iname; $ext = pathinfo($iname, PATHINFO_EXTENSION); - $dstname = hash('sha256', $iname); + $dstname = hash('sha256', $src); $dstpath = $this->thumbdir.$dstname.'.'.$ext;