--- parser3/src/classes/file.C 2003/01/29 13:31:30 1.107.2.2 +++ parser3/src/classes/file.C 2003/03/17 14:48:04 1.107.4.1 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_FILE_C="$Date: 2003/01/29 13:31:30 $"; +static const char* IDENT_FILE_C="$Date: 2003/03/17 14:48:04 $"; #include "pa_config_includes.h" @@ -78,7 +78,7 @@ static const char *suexec_safe_env_lst[] class MFile : public Methoded { public: // VStateless_class - ValuePtr create_new_value() { return ValuePtr(new VFile()); } + Value *create_new_value(Pool& pool) { return new(pool) VFile(pool); } public: // Methoded bool used_directly() { return true; } @@ -139,7 +139,7 @@ static void _load(Request& r, const Stri ); char *user_file_name=params->size()>alt_filename_param_index? - params->as_string(alt_filename_param_index, "filename must be string") + params->as_string(alt_filename_param_index, "filename must be string").cstr(String::UL_FILE_SPEC) :lfile_name.cstr(String::UL_FILE_SPEC); Value *vcontent_type=0; @@ -442,7 +442,7 @@ static void _list(Request& r, const Stri } if(suits) { - char *file_name_cstr=(char *)pool.malloc(file_name_size); + char *file_name_cstr=(char *)pool.malloc_atomic(file_name_size); memcpy(file_name_cstr, ffblk.ff_name, file_name_size); String &file_name=*new(pool) String(pool); file_name.APPEND_TAINTED(file_name_cstr, file_name_size,