--- parser3/src/classes/form.C 2003/02/26 11:29:55 1.34.2.7 +++ parser3/src/classes/form.C 2003/03/18 16:00:06 1.34.2.7.2.2 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_FORM_C="$Date: 2003/02/26 11:29:55 $"; +static const char* IDENT_FORM_C="$Date: 2003/03/18 16:00:06 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -20,7 +20,7 @@ const size_t MAX_POST_SIZE_DEFAULT=10*0x class MForm : public Methoded { public: - MForm(Pool& pool); + MForm(); public: // Methoded bool used_directly() { return false; } @@ -43,15 +43,14 @@ DECLARE_CLASS_VAR(form, 0/*fictive*/, ne // statics -StringPtr max_post_size_name(new String(MAX_POST_SIZE_NAME)); -StringPtr limits_name(new String(LIMITS_NAME)); +const String& max_post_size_name(new String(MAX_POST_SIZE_NAME)); +const String& limits_name(new String(LIMITS_NAME)); // methods // constructor & configurator void MForm::configure_admin(Request& r) { - Pool& pool=r.pool(); ValuePtr limits=r.main_class->get_element(limits_name, *r.main_class, false); if(r.request_info.method && StrEqNc(r.request_info.method, "post", true)) { @@ -74,7 +73,7 @@ void MForm::configure_admin(Request& r) // read POST data if(r.request_info.content_length) { - char *post_data=new(pool) char[r.request_info.content_length]; + char *post_data=new char[r.request_info.content_length]; r.request_info.post_size=SAPI::read_post(r.sapi_info, post_data, r.request_info.content_length); r.request_info.post_data=post_data;