Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  http_util:convert_netscapecookie_date/1

Guest
Posted: Thu Apr 29, 2010 3:01 pm Reply with quote
Guest
Hi again,

Yet another patch proposal to properly decode cookies Wink
This time, the faulty header is

{"set-cookie", "NSC_MC_QH_MFP=e242089229a0;expires=Thu, 29-Apr-10
14:53:38 GMT;path=/"}]}

When trying to decode the date, there is a brutal function clause in
http_util:convert_netscapecookie_date/1 (reason: the year has two digits,
the code expects four)
The patch proposal is attached.

Best regards,

-- Nicolas

Post received from mailinglist
Guest
Posted: Thu Apr 29, 2010 3:01 pm Reply with quote
Guest
Hi again,

Yet another patch proposal to properly decode cookies Wink
This time, the faulty header is

{"set-cookie", "NSC_MC_QH_MFP=e242089229a0;expires=Thu, 29-Apr-10
14:53:38 GMT;path=/"}]}

When trying to decode the date, there is a brutal function clause in
http_util:convert_netscapecookie_date/1 (reason: the year has two digits,
the code expects four)
The patch proposal is attached.

Best regards,

-- Nicolas

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum