From 9139bbfd0189132bc65a929ef6ba1dc49f732e43 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Thu, 10 Oct 2019 10:39:42 -0500 Subject: [PATCH] Added another lower() to a tag lookup --- core/imageboard/image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index c268266e..c3ecd9fa 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -730,9 +730,9 @@ class Image "INSERT INTO tags(tag) VALUES (:tag)", ["tag"=>$tag] ); - $database->execute( + $database->execute($database->scoreql_to_sql( "INSERT INTO image_tags(image_id, tag_id) - VALUES(:id, (SELECT id FROM tags WHERE tag = :tag))", + VALUES(:id, (SELECT id FROM tags WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(:tag)))"), ["id"=>$this->id, "tag"=>$tag] ); } else {