From: justdave%syndicomm.com <> Date: Sat, 13 Oct 2001 08:36:13 +0000 (+0000) Subject: Fix for bug 104516: No code changes in this patch, all this checkin does is remove... X-Git-Tag: bugzilla-2.14.1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430a652fcfc2ab50665fadd47fd3689d24446348;p=thirdparty%2Fbugzilla.git Fix for bug 104516: No code changes in this patch, all this checkin does is remove all tabs from the bugzilla source and replace it with the appropriate number of spaces (in most cases 8) to line up with existing code. This is part of the effort to bring the existing codebase up to par with our style guidelines. Patch by Jake Steehagen r= justdave x2 --- diff --git a/CGI.pl b/CGI.pl index 6f9461b8f8..5ac08c556a 100644 --- a/CGI.pl +++ b/CGI.pl @@ -99,33 +99,33 @@ sub ParseUrlString { my %isnull; my $remaining = $buffer; while ($remaining ne "") { - my $item; - if ($remaining =~ /^([^&]*)&(.*)$/) { - $item = $1; - $remaining = $2; - } else { - $item = $remaining; - $remaining = ""; - } - - my $name; - my $value; - if ($item =~ /^([^=]*)=(.*)$/) { - $name = $1; - $value = url_decode($2); - } else { - $name = $item; - $value = ""; - } - if ($value ne "") { - if (defined $f->{$name}) { - $f->{$name} .= $value; - my $ref = $m->{$name}; - push @$ref, $value; - } else { - $f->{$name} = $value; - $m->{$name} = [$value]; - } + my $item; + if ($remaining =~ /^([^&]*)&(.*)$/) { + $item = $1; + $remaining = $2; + } else { + $item = $remaining; + $remaining = ""; + } + + my $name; + my $value; + if ($item =~ /^([^=]*)=(.*)$/) { + $name = $1; + $value = url_decode($2); + } else { + $name = $item; + $value = ""; + } + if ($value ne "") { + if (defined $f->{$name}) { + $f->{$name} .= $value; + my $ref = $m->{$name}; + push @$ref, $value; + } else { + $f->{$name} = $value; + $m->{$name} = [$value]; + } } else { $isnull{$name} = 1; } @@ -306,7 +306,7 @@ sub ValidateBugID { # Finish validation and return if the user is in a role that has access to the bug. if ($userid) { return - if ($reporter_accessible && $reporter == $userid) + if ($reporter_accessible && $reporter == $userid) || ($assignee_accessible && $assignee == $userid) || ($qacontact_accessible && $qacontact == $userid); } @@ -391,22 +391,22 @@ sub value_quote { sub navigation_header { if (defined $::COOKIE{"BUGLIST"} && $::COOKIE{"BUGLIST"} ne "" && defined $::FORM{'id'}) { - my @bugs = split(/:/, $::COOKIE{"BUGLIST"}); - my $cur = lsearch(\@bugs, $::FORM{"id"}); - print "Bug List: (@{[$cur + 1]} of @{[$#bugs + 1]})\n"; - print "First\n"; - print "Last\n"; - if ($cur > 0) { - print "Prev\n"; - } else { - print "Prev\n"; - } - if ($cur < $#bugs) { - $::next_bug = $bugs[$cur + 1]; - print "Next\n"; - } else { - print "Next\n"; - } + my @bugs = split(/:/, $::COOKIE{"BUGLIST"}); + my $cur = lsearch(\@bugs, $::FORM{"id"}); + print "Bug List: (@{[$cur + 1]} of @{[$#bugs + 1]})\n"; + print "First\n"; + print "Last\n"; + if ($cur > 0) { + print "Prev\n"; + } else { + print "Prev\n"; + } + if ($cur < $#bugs) { + $::next_bug = $bugs[$cur + 1]; + print "Next\n"; + } else { + print "Next\n"; + } print qq{  Show list\n}; } print "     Query page\n"; @@ -483,7 +483,7 @@ sub make_checkboxes { } } if (!$found && $default ne "") { - $popup .= "$default"; + $popup .= "$default"; } return $popup; } @@ -635,7 +635,7 @@ sub make_options { exit 0; } else { - $popup .= "