summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuglist.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 4a59cbbe8..bc4fbc5cb 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -328,12 +328,13 @@ Click the <B>Back</B> button and try again.";
foreach my $f ("short_desc", "long_desc", "bug_file_loc") {
if (defined $::FORM{$f}) {
- my $s = SqlQuote(trim($::FORM{$f}));
+ my $s = trim($::FORM{$f});
if ($s ne "") {
+ $s = SqlQuote($s);
if ($::FORM{$f . "_type"} eq "regexp") {
- $query .= "and $f regexp $s ";
+ $query .= "and $f regexp $s\n";
} else {
- $query .= "and instr($f, $s) ";
+ $query .= "and instr($f, $s)\n";
}
}
}