Skip Menu |

This queue is for tickets about the libapreq2 CPAN distribution.

Report information
The Basics
Id: 69866
Status: new
Priority: 0/
Queue: libapreq2

People
Owner: Nobody in particular
Requestors: thomas [...] careerjet.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.13
Fixed in: (no value)



Subject: Expected token not present
Cookies that contain keys but no values result in a APREQ_ERROR_NOTOKEN (Expected token not present) error. Example: wget -S --no-cookies --header "Cookie: foo=bar;foo2=test;blabla" <test Show quoted text
web_site>
I have seen some known browser sometimes sending 'key' instead of 'key='. A workaround is to replace return *nlen ? APREQ_ERROR_NOTOKEN : APREQ_ERROR_BADCHAR; by return *nlen ? APR_SUCCESS : APREQ_ERROR_BADCHAR; in the function get_pair of library/cookie.c line 199. Could this be included in the next version ?