Commit 6b740b9f authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 234171; removes \%COOKIE from index.cgi; patch by Teemu Mannermaa…

Patch for bug 234171; removes \%COOKIE from index.cgi; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=gerv; a=justdave.
parent 71979bcb
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
# Contributor(s): Jacob Steenhagen <jake@bugzilla.org> # Contributor(s): Jacob Steenhagen <jake@bugzilla.org>
# #
# Suppress silly "used only once" warnings
use vars qw{ %COOKIE };
############################################################################### ###############################################################################
# Script Initialization # Script Initialization
############################################################################### ###############################################################################
...@@ -37,7 +33,6 @@ use lib "."; ...@@ -37,7 +33,6 @@ use lib ".";
require "CGI.pl"; require "CGI.pl";
use vars qw( use vars qw(
$template
$vars $vars
); );
...@@ -52,8 +47,7 @@ quietly_check_login('permit_anonymous'); ...@@ -52,8 +47,7 @@ quietly_check_login('permit_anonymous');
############################################################################### ###############################################################################
my $cgi = Bugzilla->cgi; my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
$vars->{'username'} = $::COOKIE{'Bugzilla_login'} || '';
# Return the appropriate HTTP response headers. # Return the appropriate HTTP response headers.
print $cgi->header(); print $cgi->header();
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#%] #%]
[%# INTERFACE: [%# INTERFACE:
# username: string. The login name of the user, if any. # This template has no interface.
#%] #%]
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
...@@ -64,9 +64,9 @@ function addSidebar() { ...@@ -64,9 +64,9 @@ function addSidebar() {
<a href="enter_bug.cgi">Enter a new [% terms.bug %] report</a><br> <a href="enter_bug.cgi">Enter a new [% terms.bug %] report</a><br>
<a href="report.cgi">Summary reports and charts</a><br> <a href="report.cgi">Summary reports and charts</a><br>
</p><p> </p><p>
[% IF username %] [% IF user.id %]
<a href="userprefs.cgi">Change password or user preferences</a><br> <a href="userprefs.cgi">Change password or user preferences</a><br>
<a href="relogin.cgi">Logout [% username FILTER html %]</a><br> <a href="relogin.cgi">Logout [% user.login FILTER html %]</a><br>
[% ELSE %] [% ELSE %]
<a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a><br> <a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a><br>
[% IF Param('createemailregexp') %] [% IF Param('createemailregexp') %]
......
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