]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 314919: [PostgreSQL] "Find a Specific Bug" using Pg fails - Patch by Frédéric...
authorlpsolit%gmail.com <>
Thu, 10 Nov 2005 07:40:50 +0000 (07:40 +0000)
committerlpsolit%gmail.com <>
Thu, 10 Nov 2005 07:40:50 +0000 (07:40 +0000)
Bugzilla/DB.pm

index 263f545af44c3d7ebb7163cb951fb09cc3a25dcc..f031637d5547328a8bdb19e378b6564595fcb8ba 100644 (file)
@@ -272,6 +272,9 @@ sub sql_fulltext_search {
     # in LIKE search clauses
     @words = map($self->quote("%$_%"), @words);
 
+    # untaint words, since they are safe to use now that we've quoted them
+    map(trick_taint($_), @words);
+
     # turn the words into a set of LIKE search clauses
     @words = map("LOWER($column) LIKE $_", @words);