summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-10-07 02:21:27 +0200
committermkanat%bugzilla.org <>2006-10-07 02:21:27 +0200
commit06986da30e4de43957d8c0365cce8491f7bfc9c7 (patch)
tree6f097694b434b0482c99a208932c981c28b6883d
parentfaa0b904d0ec18b72e8e848783e52296306890dc (diff)
downloadbugzilla-06986da30e4de43957d8c0365cce8491f7bfc9c7.tar.gz
bugzilla-06986da30e4de43957d8c0365cce8491f7bfc9c7.tar.xz
Bug 355709: [PostgreSQL] Crash when querying the DB
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 7c0fe7fdd..d0b0cd6ba 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1632,7 +1632,7 @@ sub GetByWordListSubstr {
foreach my $word (split(/[\s,]+/, $strs)) {
if ($word ne "") {
$sql_word = $dbh->quote($word);
- trick_taint($word);
+ trick_taint($sql_word);
push(@list, $dbh->sql_position(lc($sql_word),
"LOWER($field)") . " > 0");
}