--- parser3/src/classes/file.C 2005/11/24 13:50:29 1.133.6.6 +++ parser3/src/classes/file.C 2005/11/24 14:00:34 1.142 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2005/11/24 13:50:29 $"; +static const char * const IDENT_FILE_C="$Date: 2005/11/24 14:00:34 $"; #include "pa_config_includes.h" @@ -45,7 +45,7 @@ extern String sql_offset_name; class MFile: public Methoded { public: // VStateless_class - Value* create_new_value(Pool&) { return new VFile(); } + Value* create_new_value(Pool&, HashStringValue&) { return new VFile(); } public: // Methoded bool used_directly() { return true; } @@ -359,7 +359,7 @@ static void _exec_cgi(Request& r, Method // influence URLencoding of tainted pieces to String::L_URI lang // main target -- $.QUERY_STRING Temp_client_charset temp(r.charsets, charset? *charset: r.charsets.source()); - user_env->for_each(append_env_pair, &info); + user_env->for_each(append_env_pair, &info); } // $.stdin if(info.vstdin) { @@ -595,7 +595,7 @@ static void _find(Request& r, MethodPara file_spec=&r.relative(r.request_info.uri, file_name); // easy way - if(file_readable(r.absolute(*file_spec))) { + if(file_exist(r.absolute(*file_spec))) { r.write_assign_lang(*file_spec); return; } @@ -610,7 +610,7 @@ static void _find(Request& r, MethodPara String test_name; test_name<<*(dirname=&dirname->mid(0, after_monkey_slash)); test_name<