diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-09-23 03:18:45 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-09-23 03:19:44 +0200 |
commit | ca8105094c348b394bc856dc1ac5f3a739c34c16 (patch) | |
tree | a936826609b1a933b38a9cffea393cdc5365a363 | |
parent | 83c7cc45daf6fb1f8c36f15297a4657e45a34e88 (diff) |
m_httpd Accept POST requests only when the value for Content-Length is greater than zero
-rw-r--r-- | src/modules/m_httpd.cpp | 2 |
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; |