From ca8105094c348b394bc856dc1ac5f3a739c34c16 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 23 Sep 2012 03:18:45 +0200 Subject: m_httpd Accept POST requests only when the value for Content-Length is greater than zero --- src/modules/m_httpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index bf86c9091..8cc142f11 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -282,7 +282,7 @@ class HttpServerSocket : public BufferedSocket return; } - if (headers.IsSet("Content-Length") && (postsize = ConvToInt(headers.GetHeader("Content-Length"))) != 0) + if (headers.IsSet("Content-Length") && (postsize = ConvToInt(headers.GetHeader("Content-Length"))) > 0) { InternalState = HTTP_SERVE_RECV_POSTDATA; -- cgit v1.2.3