Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 perusing the Monastery: (10)
As of 2015-07-07 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls