mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug 104065 - Stop uninitilized string warnings from getting into the error log when the login cookie doesn't exist.
Patch by Dave Miller <justdave@syndicomm.com> r= gerv@mozilla.org, jake@acutex.net
This commit is contained in:
parent
3714be02c7
commit
57021053de
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user