Merged Naomi's change for CC-1955
This commit is contained in:
commit
7e8f61549e
2 changed files with 3 additions and 3 deletions
|
@ -1836,8 +1836,8 @@ class StoredFile {
|
|||
$innerCond = array();
|
||||
|
||||
foreach($searchCols as $col) {
|
||||
|
||||
$innerCond[] = "{$col}::text ILIKE '%{$term}%'";
|
||||
$escapedTerm = pg_escape_string($term);
|
||||
$innerCond[] = "{$col}::text ILIKE '%{$escapedTerm}%'";
|
||||
}
|
||||
$outerCond[] = "(".join(" OR ", $innerCond).")";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue