Fixed problem with attachments containing "HTTP" in their name

SVN revision: 1607
This commit is contained in:
2006-01-17 19:21:06 +00:00
parent 6f5f1257c3
commit c04ace8c7d
+2 -2
View File
@@ -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++);