mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Extra column check needs to be escaped
This commit is contained in:
parent
fa6c1d4a9c
commit
4b134dfc9e
@ -1164,7 +1164,7 @@ class so_sql
|
||||
// OR extra column on the end so a null or blank won't block a hit in the main columns
|
||||
if ($extra_col)
|
||||
{
|
||||
$result .= (strlen($result) ? ' OR ' : ' ') . "$extra_col = $pattern";
|
||||
$result .= (strlen($result) ? ' OR ' : ' ') . "$extra_col = " . $GLOBALS['egw']->db->quote($pattern);
|
||||
}
|
||||
|
||||
$op = 'OR';
|
||||
|
Loading…
Reference in New Issue
Block a user