--- parser3/src/targets/cgi/parser3.C 2001/04/09 15:49:01 1.61 +++ parser3/src/targets/cgi/parser3.C 2001/04/19 16:59:23 1.65 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.61 2001/04/09 15:49:01 paf Exp $ + $Id: parser3.C,v 1.65 2001/04/19 16:59:23 paf Exp $ */ #include "pa_config_includes.h" @@ -14,18 +14,13 @@ # include #endif -#include -#include -#include -#include -#include - #include "pa_sapi.h" #include "pa_common.h" #include "pa_globals.h" #include "pa_request.h" #include "pa_socks.h" -#include "pa_exec.h" + +/// @test disable /cgi-bin/parser3/auto.p /// IIS refuses to read bigger chunks const size_t READ_POST_CHUNK_SIZE=0x400*0x400; // 1M @@ -124,13 +119,6 @@ void SAPI::send_body(Pool& pool, const v stdout_write(buf, size); } -int SAPI::execute(const String& file_spec, - const Hash *env, - const Array *argv, - const String& in, String& out, String& err) { - return pa_exec(file_spec, env, argv, in, out, err); -} - /** main workhorse @@ -175,10 +163,9 @@ int main(int argc, char *argv[]) { // must be first in PTRY{}PCATCH #ifdef WIN32 SetUnhandledExceptionFilter(&TopLevelExceptionFilter); - //TODO: initSocks(); #endif - // + // init socks init_socks(pool); // init global variables @@ -245,7 +232,7 @@ int main(int argc, char *argv[]) { // prepare to process request Request request(pool, request_info, - 1||cgi ? String::UL_HTML_TYPO : String::UL_CLEAN + 1||cgi ? String::UL_HTML_TYPO : String::UL_AS_IS ); // some root-controlled location @@ -255,7 +242,7 @@ int main(int argc, char *argv[]) { GetWindowsDirectory(root_auto_path, MAX_STRING); #else // ~nobody todo: figure out a better place - char *root_auto_path=SAPI::get_env(pool, "HOME"); + const char *root_auto_path=SAPI::get_env(pool, "HOME"); #endif // beside by binary