[Bug Fix] Escape search string in #find item (#3510)

This commit is contained in:
Alex King
2023-07-22 18:20:00 -04:00
committed by GitHub
parent c30074be66
commit 1d96ddb60d
+1 -1
View File
@@ -53,7 +53,7 @@ public:
auto query = fmt::format(
"SELECT `id` FROM {} WHERE LOWER(`name`) LIKE '%%{}%%' ORDER BY id ASC",
TableName(),
search_string
Strings::Escape(search_string)
);
if (query_limit >= 1) {