mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed problem with attachments containing "HTTP" in their name
SVN revision: 1607
This commit is contained in:
parent
6f5f1257c3
commit
c04ace8c7d
@ -23788,9 +23788,9 @@ void server_loop(void)
|
|||||||
} else if (strncmp(net_buffer, "GET", 3) == 0) {
|
} else if (strncmp(net_buffer, "GET", 3) == 0) {
|
||||||
/* extract path and commands */
|
/* extract path and commands */
|
||||||
*strchr(net_buffer, '\r') = 0;
|
*strchr(net_buffer, '\r') = 0;
|
||||||
if (!strstr(net_buffer, "HTTP"))
|
if (!strstr(net_buffer, "HTTP/1"))
|
||||||
goto finished;
|
goto finished;
|
||||||
*(strstr(net_buffer, "HTTP") - 1) = 0;
|
*(strstr(net_buffer, "HTTP/1") - 1) = 0;
|
||||||
/* strip logbook from path */
|
/* strip logbook from path */
|
||||||
p = net_buffer + 5;
|
p = net_buffer + 5;
|
||||||
for (i = 0; *p && *p != '/' && *p != '?'; p++);
|
for (i = 0; *p && *p != '/' && *p != '?'; p++);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user