Fixed cookie handling, thanks to Simon Patton

SVN revision: 2192
This commit is contained in:
Stefan Ritt 2009-04-15 07:25:57 +00:00
parent cd6b160e89
commit e003f59b61

View File

@ -26726,11 +26726,9 @@ int process_http_request(const char *request, int i_conn)
if (str[i] == '=') { if (str[i] == '=') {
str[i] = 0; str[i] = 0;
p += i + 1; p += i + 1;
for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n';) for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n'; p++)
if (i < (int) sizeof(cookie) - 1) if (i < (int) sizeof(cookie) - 1)
cookie[i++] = *p++; cookie[i++] = *p;
else
break;
cookie[i] = 0; cookie[i] = 0;
} else { } else {
/* empty cookie */ /* empty cookie */