Wasn't properly stripping out null queries on text searches.

Harmless, but was generating overly complicated SQL.
This commit is contained in:
terry%netscape.com 1999-01-19 17:17:21 +00:00
Родитель a62eac6a91
Коммит 591cad7c9e
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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";
}
}
}