--- parser3/src/classes/file.C 2009/05/15 23:35:06 1.191 +++ parser3/src/classes/file.C 2009/06/14 00:33:36 1.193 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2009/05/15 23:35:06 $"; +static const char * const IDENT_FILE_C="$Date: 2009/06/14 00:33:36 $"; #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&, HashStringValue&) { return new VFile(); } + Value* create_new_value(Pool&, HashStringValue*) { return new VFile(); } public: // Methoded bool used_directly() { return true; } @@ -401,7 +401,7 @@ static void _exec_cgi(Request& r, Method if(value_cstr) \ env.put( \ String::Body(#name), \ - String::Body(value_cstr)); \ + String::Body(*value_cstr?value_cstr:0)); \ // passing SAPI::environment if(const char *const *pairs=SAPI::environment(r.sapi_info)) { while(const char* pair=*pairs++)