Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Weird Regex in CGI::Cookie

by enoch (Chaplain)
on Oct 16, 2003 at 04:39 UTC ( [id://299653]=note: print w/replies, xml ) Need Help??


in reply to Weird Regex in CGI::Cookie

I emailed in the following patch:
--- /usr/local/lib/perl5/5.6.1/CGI/Cookie.pm +++ /usr/local/lib/perl5/5.6.1/CGI/Cookie.pm.new @@ -42,7 +42,7 @@ my(@pairs) = split("; ?",$raw_cookie); foreach (@pairs) { - s/\s*(.*?)\s*/$1/; + s/^\s+//; s/\s+$//; if (/^([^=]+)=(.*)/) { $key = $1; $value = $2;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299653]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found