--- parser3/src/classes/file.C 2003/04/15 06:44:33 1.106.2.1 +++ parser3/src/classes/file.C 2003/03/21 07:19:42 1.108 @@ -1,11 +1,11 @@ /** @file Parser: @b file parser class. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_FILE_C="$Date: 2003/04/15 06:44:33 $"; +static const char* IDENT_FILE_C="$Date: 2003/03/21 07:19:42 $"; #include "pa_config_includes.h" @@ -134,7 +134,7 @@ static void _load(Request& r, const Stri Hash *fields=0; file_read(pool, lfile_name, data, size, vmode_name.as_string()==TEXT_MODE_NAME, - third_param_hash, &r, + third_param_hash, &fields ); @@ -269,7 +269,6 @@ static void _exec_cgi(Request& r, const env.put(*new(pool) String(pool, "SCRIPT_NAME"), &script_name); //env.put(*new(pool) String(pool, "SCRIPT_FILENAME"), ??&script_name); - bool stdin_specified=false; // environment & stdin from param String in(pool); if(params->size()>1) { @@ -278,7 +277,6 @@ static void _exec_cgi(Request& r, const Append_env_pair_info info={&env}; user_env->for_each(append_env_pair, &info); if(info.vstdin) { - stdin_specified=true; if(const String *sstdin=info.vstdin->get_string()) { in.append(*sstdin, String::UL_CLEAN, true); } else @@ -301,10 +299,6 @@ static void _exec_cgi(Request& r, const *argv+=¶ms->as_string(i, "parameter must be string"); } - // passing POST data - if(!stdin_specified) // if $.stdin[...] not specified - in.APPEND(r.post_data, r.post_size, String::UL_CLEAN, "POST data (passed)", 0); - // exec! String out(pool); String& err=*new(pool) String(pool);