From: jake%acutex.net <> Date: Thu, 25 Oct 2001 21:46:58 +0000 (+0000) Subject: Bug 104065 - Stop uninitilized string warnings from getting into the error log when... X-Git-Tag: bugzilla-2.14.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a866ab78f91873f42a13710f299bcb0f176b49c;p=thirdparty%2Fbugzilla.git Bug 104065 - Stop uninitilized string warnings from getting into the error log when the login cookie doesn't exist. Patch by Dave Miller r= gerv@mozilla.org, jake@acutex.net --- diff --git a/process_bug.cgi b/process_bug.cgi index 416ee9ccd9..9ac1e8744a 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -94,7 +94,7 @@ if (defined $::FORM{'dup_id'} && $::FORM{'knob'} eq "duplicate") { # list. Thus we have to make sure this bug ID is also valid, # since a malicious cracker might alter their cookies for the purpose # gaining access to bugs they are not authorized to access. -if ( $::COOKIE{"BUGLIST"} ne "" && defined $::FORM{'id'} ) { +if ( defined $::COOKIE{"BUGLIST"} && defined $::FORM{'id'} ) { my @buglist = split( /:/ , $::COOKIE{"BUGLIST"} ); my $idx = lsearch( \@buglist , $::FORM{"id"} ); if ($idx < $#buglist) {