--- parser3/src/include/pa_request.h 2003/01/29 11:06:43 1.160.2.4 +++ parser3/src/include/pa_request.h 2003/03/11 08:53:03 1.161 @@ -8,7 +8,7 @@ #ifndef PA_REQUEST_H #define PA_REQUEST_H -static const char* IDENT_REQUEST_H="$Date: 2003/01/29 11:06:43 $"; +static const char* IDENT_REQUEST_H="$Date: 2003/03/11 08:53:03 $"; #include "pa_pool.h" #include "pa_hash.h" @@ -34,7 +34,7 @@ static const char* IDENT_REQUEST_H="$Dat // consts #define MAIN_METHOD_NAME "main" -const uint ANTI_ENDLESS_EXECUTE_RECOURSION=500; +const uint ANTI_ENDLESS_EXECUTE_RECOURSION=1000; // defines @@ -55,20 +55,6 @@ class Temp_lang; class Methoded; class VMethodFrame; -/// some information from web server -class Info { -public: - const char *document_root; - const char *path_translated; - const char *method; - const char *query_string; - const char *uri; - const char *content_type; - size_t content_length; - const char *cookie; - bool mail_received; -}; - /// Main workhorse. class Request : public Pooled { friend class Temp_lang; @@ -77,16 +63,28 @@ class Request : public Pooled { friend class Temp_request_self; public: - Pool& pool() { return fpool; } - #ifdef RESOURCES_DEBUG /// measures double sql_connect_time; double sql_request_time; #endif - Request( - Request_info& ainfo, + /// some information from web server + class Info { + public: + const char *document_root; + const char *path_translated; + const char *method; + const char *query_string; + const char *uri; + const char *content_type; + size_t content_length; + const char *cookie; + bool mail_received; + }; + + Request(Pool& apool, + Info& ainfo, uchar adefault_lang, ///< all tainted data default untainting lang bool status_allowed ///< status class allowed ); @@ -224,10 +222,9 @@ public: public: /// info from web server - Request_info& info; - - /// source, client, mail charsets - Request_charsets charset_info; + Info& info; + /// user's post data + const char *post_data; size_t post_size; /// name of 'main' method const String main_method_name; @@ -256,8 +253,6 @@ public: private: - Pool fpool; - //@{ request processing status /// exception stack trace Stack exception_trace;