[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ public:
auto query = fmt::format( auto query = fmt::format(
"SELECT `id` FROM {} WHERE LOWER(`name`) LIKE '%%{}%%' ORDER BY id ASC", "SELECT `id` FROM {} WHERE LOWER(`name`) LIKE '%%{}%%' ORDER BY id ASC",
TableName(), TableName(),
search_string Strings::Escape(search_string)
); );
if (query_limit >= 1) { if (query_limit >= 1) {