From c04ace8c7dedf29b1f1fc20653a4173666adee23 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 17 Jan 2006 19:21:06 +0000 Subject: [PATCH] Fixed problem with attachments containing "HTTP" in their name SVN revision: 1607 --- src/elogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index d154e91e..6eb1cbee 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -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++);