From 3bc2db561b8c5ad43d9888acd9a7b2fb1cf077a4 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Aug 2013 04:13:08 -0400 Subject: [PATCH] Fix reading post data in m_httpd --- modules/extra/m_httpd.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/extra/m_httpd.cpp b/modules/extra/m_httpd.cpp index 50eaa3a77..30e8b6ba9 100644 --- a/modules/extra/m_httpd.cpp +++ b/modules/extra/m_httpd.cpp @@ -47,7 +47,6 @@ class MyHTTPClient : public HTTPClient Anope::string inbuf; unsigned content_length; - Anope::string post_data; enum { @@ -128,11 +127,9 @@ class MyHTTPClient : public HTTPClient if (!this->header_done) return true; - this->post_data += inbuf; - - if (this->post_data.length() >= this->content_length) + if (this->inbuf.length() >= this->content_length) { - sepstream sep(this->post_data, '&'); + sepstream sep(this->inbuf, '&'); Anope::string token; while (sep.GetToken(token))