Commit 7883861f authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 235175: replaces ::FORM from createaccount.cgi with CGI based…

Patch for bug 235175: replaces ::FORM from createaccount.cgi with CGI based methods that are mod_perl compatible; r=gerv; a=justdave.
parent 6d94220d
...@@ -32,7 +32,6 @@ require "CGI.pl"; ...@@ -32,7 +32,6 @@ require "CGI.pl";
# Shut up misguided -w warnings about "used only once": # Shut up misguided -w warnings about "used only once":
use vars qw( use vars qw(
%FORM
$template $template
$vars $vars
); );
...@@ -54,11 +53,11 @@ Bugzilla->logout(); ...@@ -54,11 +53,11 @@ Bugzilla->logout();
my $cgi = Bugzilla->cgi; my $cgi = Bugzilla->cgi;
print $cgi->header(); print $cgi->header();
my $login = $::FORM{'login'}; my $login = $cgi->param('login');
if (defined($login)) { if (defined($login)) {
# We've been asked to create an account. # We've been asked to create an account.
my $realname = trim($::FORM{'realname'}); my $realname = trim($cgi->param('realname'));
CheckEmailSyntax($login); CheckEmailSyntax($login);
$vars->{'login'} = $login; $vars->{'login'} = $login;
......
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