--- parser3/src/main/pa_request.C 2003/11/20 17:07:44 1.259 +++ parser3/src/main/pa_request.C 2003/12/11 09:25:50 1.262 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2003/11/20 17:07:44 $"; +static const char * const IDENT_REQUEST_C="$Date: 2003/12/11 09:25:50 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -118,7 +118,7 @@ Request::Request(SAPI_Info& asapi_info, charsets(UTF8_charset, UTF8_charset, UTF8_charset), // default charsets main_class(VClassMAIN_create()), - form(*new VForm), + form(*new VForm(charsets, arequest_info)), mail(*new VMail), response(*new VResponse(arequest_info, charsets)), cookie(*new VCookie), @@ -131,9 +131,11 @@ Request::Request(SAPI_Info& asapi_info, // private mime types mime_types(0) { + pa_register_thread_request(*this); + // file_no=0 => unknown - file_list+=String::Body("UNKNOWN"); - file_list+=String::Body("-body of process-"); // pseudo_file_no__process + file_list+="UNKNOWN"; + file_list+="-body of process-"; // pseudo_file_no__process // maybe expire old caches cache_managers.maybe_expire(); @@ -308,9 +310,6 @@ gettimeofday(&mt[0],NULL); if(Table *table=element->get_table()) mime_types=table; - // filling form fields - form.fill_fields_and_tables(charsets, request_info); - // filling cookies cookie.fill_fields(request_info); @@ -752,10 +751,10 @@ Request::Exception_details Request::get_ // $.file lineno colno if(trace) { const Operation::Origin origin=trace.origin(); - hash.put(String::Body("file"), + hash.put("file", new VString(*new String(file_list[origin.file_no], String::L_TAINTED))); - hash.put(String::Body("lineno"), new VInt(1+origin.line)); - hash.put(String::Body("colno"), new VInt(1+origin.col)); + hash.put("lineno", new VInt(1+origin.line)); + hash.put("colno", new VInt(1+origin.col)); } // $.comment