added: a new plugin message: WINIX_POST_PARAMS

raw POST parameters
       in p1 there is a pointer to std::string meaning a parameter's name
       in p2 there is a pointer to std::string value
       this is sent only from PostParser
       PostMultiParser (multipart/form-data html forms) doesn't send this messsage
       there is no a session set (session pointer is null)




git-svn-id: svn://ttmath.org/publicrep/winix/trunk@874 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-08-19 13:50:58 +00:00
parent cc71c225a3
commit 90261b2005
4 changed files with 22 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
#include "utf8/utf8.h"
#include "log.h"
#include "config.h"
#include "plugin.h"
@@ -30,6 +31,9 @@ class PostParser : public HttpSimpleParser
bool input_as_utf8;
size_t log_value_size;
int var_index;
bool has_winix_post_params_msg;
protected:
@@ -77,6 +81,9 @@ protected:
bool added;
std::pair<PostTab::iterator, bool> res;
if( has_winix_post_params_msg )
plugin.Call(0, WINIX_POST_PARAMS, &name, &value);
ConvStr(name, temp_name);
ConvStr(value, temp_value);
@@ -121,6 +128,8 @@ public:
post_tab = &post_tab_;
var_index = 1;
has_winix_post_params_msg = plugin.HasMessage(WINIX_POST_PARAMS);
HttpSimpleParser::Parse();
}