fix(core): only escape "%" with the SQL LIKE operator

This commit is contained in:
Francis Lachapelle
2022-02-21 14:37:04 -05:00
parent 9bffee269d
commit 2389e44513
6 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -776,7 +776,7 @@
if (channel)
{
lowerFilter = [filter lowercaseString];
lowerFilter = [lowerFilter stringByReplacingString: @"'" withString: @"''"];
lowerFilter = [lowerFilter asSafeSQLLikeString];
sql = [NSMutableString stringWithFormat: (@"SELECT *"
@" FROM %@"