summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-09-23 03:18:45 +0200
committerattilamolnar <attilamolnar@hush.com>2012-09-23 03:19:44 +0200
commitca8105094c348b394bc856dc1ac5f3a739c34c16 (patch)
treea936826609b1a933b38a9cffea393cdc5365a363 /src/modules
parent83c7cc45daf6fb1f8c36f15297a4657e45a34e88 (diff)
m_httpd Accept POST requests only when the value for Content-Length is greater than zero
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_httpd.cpp2
1 files changed, 1 insertions, 1 deletions
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;