Commit d1883346 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 314919: [PostgreSQL] "Find a Specific Bug" using Pg fails - Patch by…

Bug 314919: [PostgreSQL] "Find a Specific Bug" using Pg fails - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
parent 3832c3c2
...@@ -272,6 +272,9 @@ sub sql_fulltext_search { ...@@ -272,6 +272,9 @@ sub sql_fulltext_search {
# in LIKE search clauses # in LIKE search clauses
@words = map($self->quote("%$_%"), @words); @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 # turn the words into a set of LIKE search clauses
@words = map("LOWER($column) LIKE $_", @words); @words = map("LOWER($column) LIKE $_", @words);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment