mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed cookie handling, thanks to Simon Patton
SVN revision: 2192
This commit is contained in:
parent
cd6b160e89
commit
e003f59b61
@ -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 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user