Fixed problem with attachments containing "HTTP" in their name
SVN revision: 1607
This commit is contained in:
+2
-2
@@ -23788,9 +23788,9 @@ void server_loop(void)
|
||||
} else if (strncmp(net_buffer, "GET", 3) == 0) {
|
||||
/* extract path and commands */
|
||||
*strchr(net_buffer, '\r') = 0;
|
||||
if (!strstr(net_buffer, "HTTP"))
|
||||
if (!strstr(net_buffer, "HTTP/1"))
|
||||
goto finished;
|
||||
*(strstr(net_buffer, "HTTP") - 1) = 0;
|
||||
*(strstr(net_buffer, "HTTP/1") - 1) = 0;
|
||||
/* strip logbook from path */
|
||||
p = net_buffer + 5;
|
||||
for (i = 0; *p && *p != '/' && *p != '?'; p++);
|
||||
|
||||
Reference in New Issue
Block a user