Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Weird Regex in CGI::Cookie

by enoch (Chaplain)
on Oct 16, 2003 at 04:39 UTC ( #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;


Comment on Re: Weird Regex in CGI::Cookie
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-21 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls