From: mkanat%bugzilla.org <> Date: Sat, 7 Oct 2006 00:21:27 +0000 (+0000) Subject: Bug 355709: [PostgreSQL] Crash when querying the DB X-Git-Tag: bugzilla-2.23.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06986da30e4de43957d8c0365cce8491f7bfc9c7;p=thirdparty%2Fbugzilla.git Bug 355709: [PostgreSQL] Crash when querying the DB Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 7c0fe7fdd5..d0b0cd6ba1 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"); }