Venkataramana Mokkapati corrected a cookie parser bug
This commit is contained in:
parent
2bcb8abf40
commit
78423c5899
@ -409,7 +409,7 @@ struct Cookie *cookie_getlist(struct CookieInfo *c,
|
||||
/* now check if the domain is correct */
|
||||
domlen=co->domain?strlen(co->domain):0;
|
||||
if(!co->domain ||
|
||||
((domlen<hostlen) &&
|
||||
((domlen<=hostlen) &&
|
||||
strequal(host+(hostlen-domlen), co->domain)) ) {
|
||||
/* the right part of the host matches the domain stuff in the
|
||||
cookie data */
|
||||
|
Loading…
x
Reference in New Issue
Block a user