]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 104065 - Stop uninitilized string warnings from getting into the error log when...
authorjake%acutex.net <>
Thu, 25 Oct 2001 21:46:58 +0000 (21:46 +0000)
committerjake%acutex.net <>
Thu, 25 Oct 2001 21:46:58 +0000 (21:46 +0000)
Patch by Dave Miller <justdave@syndicomm.com>
r= gerv@mozilla.org, jake@acutex.net

process_bug.cgi

index 416ee9ccd9271beaeb42c5805cfb63a4fed9e398..9ac1e8744aac9ca30aefb98aa2ec060d18c92e71 100755 (executable)
@@ -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) {