mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed bug with empty cookies
SVN revision: 2170
This commit is contained in:
parent
7d482de459
commit
f6d14ac55d
@ -26639,6 +26639,8 @@ int process_http_request(const char *request, int i_conn)
|
|||||||
p++;
|
p++;
|
||||||
while (*p && *p == ' ')
|
while (*p && *p == ' ')
|
||||||
p++;
|
p++;
|
||||||
|
if (*p == '\r' || *p == '\n')
|
||||||
|
break;
|
||||||
strlcpy(str, p, sizeof(str));
|
strlcpy(str, p, sizeof(str));
|
||||||
for (i = 0; i < (int) strlen(str); i++)
|
for (i = 0; i < (int) strlen(str); i++)
|
||||||
if (str[i] == '=' || str[i] == ';')
|
if (str[i] == '=' || str[i] == ';')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user