mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02: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
|
// OR extra column on the end so a null or blank won't block a hit in the main columns
|
||||||
if ($extra_col)
|
if ($extra_col)
|
||||||
{
|
{
|
||||||
$result .= (strlen($result) ? ' OR ' : ' ') . "$extra_col = $pattern";
|
$result .= (strlen($result) ? ' OR ' : ' ') . "$extra_col = " . $GLOBALS['egw']->db->quote($pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
$op = 'OR';
|
$op = 'OR';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user