diff options
| author | Adam <Adam@anope.org> | 2013-08-23 04:13:08 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-08-23 04:13:08 -0400 |
| commit | 3bc2db561b8c5ad43d9888acd9a7b2fb1cf077a4 (patch) | |
| tree | 7f16797316fb85ba77210f937c445257b4688faf | |
| parent | 4d1492d444781069883f82ce00b389bb0ecd5099 (diff) | |
Fix reading post data in m_httpd
| -rw-r--r-- | modules/extra/m_httpd.cpp | 7 |
1 files 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)) |
