mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-24 22:50:31 +00:00
fix(core): only escape "%" with the SQL LIKE operator
This commit is contained in:
@@ -776,7 +776,7 @@
|
||||
if (channel)
|
||||
{
|
||||
lowerFilter = [filter lowercaseString];
|
||||
lowerFilter = [lowerFilter stringByReplacingString: @"'" withString: @"''"];
|
||||
lowerFilter = [lowerFilter asSafeSQLLikeString];
|
||||
|
||||
sql = [NSMutableString stringWithFormat: (@"SELECT *"
|
||||
@" FROM %@"
|
||||
|
||||
Reference in New Issue
Block a user