Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report [rt.cpan.org #75715] #19

Open
oalders opened this issue Mar 30, 2017 · 0 comments
Open

bug report [rt.cpan.org #75715] #19

oalders opened this issue Mar 30, 2017 · 0 comments

Comments

@oalders
Copy link
Member

oalders commented Mar 30, 2017

Migrated from rt.cpan.org#75715 (status was 'new')

Requestors:

From [email protected] on 2012-03-12 14:19:33:

In add_cookie_header $val should be checked as described below >>

sub add_cookie_header
{
   ...
            while (($key,$array) = each %{$cookies->{$path}}) {
                my($version,$val,$port,$path_spec,$secure,$expires) =
@$array;

                # *this line has to be added, to prevent errors for
undefined value*
                next if !defined($val);

                if ($secure && !$secure_request) {
                    next;
                }
   ...
}

----

The above recommendation is based on experience when application using
WWW::Scripter module
parsed a web page containing the following JavaScript:

           if (typeof navigator.cookieEnabled == "undefined") {
               document.cookie = "cookie";
               test = (document.cookie.indexOf("cookie") != -1) ? true :
false;
           }

Once the fix recommended above has been applied, no error occurred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant