summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-07-05 20:43:18 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-07 00:19:20 +0200
commit37722eca39874bb6abdcd120e3e458bd62dea62b (patch)
tree57a9a9970c00ec77baecab7e154ef7dfcef863fe /query.cgi
parenta6f98de0d4e842351222b0173a1fff151da8738e (diff)
downloadbugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.gz
bugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.xz
Bug 1377933 - Remove trailing whitespace from all perl files
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi12
1 files changed, 6 insertions, 6 deletions
diff --git a/query.cgi b/query.cgi
index 3cf3c079b..bab32c27e 100755
--- a/query.cgi
+++ b/query.cgi
@@ -55,7 +55,7 @@ my $userdefaultquery;
if ($userid) {
$userdefaultquery = $dbh->selectrow_array(
"SELECT query FROM namedqueries " .
- "WHERE userid = ? AND name = ?",
+ "WHERE userid = ? AND name = ?",
undef, ($userid, DEFAULT_QUERY_NAME));
}
@@ -88,7 +88,7 @@ sub PrefillForm {
next if grep { $_ eq $name } @skip;
$foundone = 1;
my @values = $buf->param($name);
-
+
# If the name is a single letter followed by numbers, it's part
# of Custom Search. We store these as an array of hashes.
if ($name =~ /^([[:lower:]])(\d+)$/) {
@@ -118,9 +118,9 @@ if (!PrefillForm($buffer)) {
}
}
-# if using groups for entry, then we don't want people to see products they
+# if using groups for entry, then we don't want people to see products they
# don't have access to. Remove them from the list.
-my @selectable_products = sort {lc($a->name) cmp lc($b->name)}
+my @selectable_products = sort {lc($a->name) cmp lc($b->name)}
@{$user->get_selectable_products};
Bugzilla::Product::preload(\@selectable_products);
@@ -259,8 +259,8 @@ if (defined($vars->{'format'}) && IsValidQueryType($vars->{'format'})) {
# If we submit back to ourselves (for e.g. boolean charts), we need to
# preserve format information; hence query_format taking priority over
# format.
-my $format = $template->get_format("search/search",
- $vars->{'query_format'} || $vars->{'format'},
+my $format = $template->get_format("search/search",
+ $vars->{'query_format'} || $vars->{'format'},
scalar $cgi->param('ctype'));
print $cgi->header($format->{'ctype'});