From: jocuri%softhome.net <> Date: Tue, 24 Feb 2004 20:25:11 +0000 (+0000) Subject: Patch for bug 235175: replaces ::FORM from createaccount.cgi with CGI based methods... X-Git-Tag: bugzilla-2.17.7~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7883861f7dc34a6cd5483cff72a6774f2deb45ed;p=thirdparty%2Fbugzilla.git Patch for bug 235175: replaces ::FORM from createaccount.cgi with CGI based methods that are mod_perl compatible; r=gerv; a=justdave. --- diff --git a/createaccount.cgi b/createaccount.cgi index 22b8129e95..6c624b0ba4 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -32,7 +32,6 @@ require "CGI.pl"; # Shut up misguided -w warnings about "used only once": use vars qw( - %FORM $template $vars ); @@ -54,11 +53,11 @@ Bugzilla->logout(); my $cgi = Bugzilla->cgi; print $cgi->header(); -my $login = $::FORM{'login'}; +my $login = $cgi->param('login'); if (defined($login)) { # We've been asked to create an account. - my $realname = trim($::FORM{'realname'}); + my $realname = trim($cgi->param('realname')); CheckEmailSyntax($login); $vars->{'login'} = $login;