1
0
Fork 0

protect_sprintf calls

implement protectSprintf function
This commit is contained in:
Adam Magness 2018-11-08 10:30:45 -05:00
commit 0efcbe5d15
5 changed files with 10 additions and 10 deletions

View file

@ -311,7 +311,7 @@ function frio_acl_lookup(App $a, &$results)
$sql_extra = '';
if ($results['search']) {
$search_txt = DBA::escape(protect_sprintf(preg_quote($results['search'])));
$search_txt = DBA::escape(Strings::protectSprintf(preg_quote($results['search'])));
$sql_extra .= " AND (`attag` LIKE '%%" . $search_txt . "%%' OR `name` LIKE '%%" . $search_txt . "%%' OR `nick` LIKE '%%" . $search_txt . "%%') ";
}