mirror of
https://github.com/anope/anope.git
synced 2026-07-04 01:03:12 +02:00
Fix reading post data in m_httpd
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user