--- parser3/src/targets/isapi/parser3isapi.C 2002/06/12 14:09:50 1.74 +++ parser3/src/targets/isapi/parser3isapi.C 2002/06/24 11:59:33 1.76 @@ -4,7 +4,7 @@ Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: parser3isapi.C,v 1.74 2002/06/12 14:09:50 paf Exp $ + $Id: parser3isapi.C,v 1.76 2002/06/24 11:59:33 paf Exp $ */ #ifndef _MSC_VER @@ -376,7 +376,7 @@ void real_parser_handler(Pool& pool, LPE request_info.content_type=lpECB->lpszContentType; request_info.content_length=lpECB->cbTotalBytes; request_info.cookie=SAPI::get_env(pool, "HTTP_COOKIE"); - + request_info.mail_received=false; // prepare to process request Request request(pool, @@ -390,22 +390,22 @@ void real_parser_handler(Pool& pool, LPE /* status_allowed */); // beside by binary - static char site_config_path[MAX_STRING]; - strncpy(site_config_path, argv0, MAX_STRING-1); site_config_path[MAX_STRING-1]=0; // filespec of my binary + static char beside_binary_path[MAX_STRING]; + strncpy(beside_binary_path, argv0, MAX_STRING-1); beside_binary_path[MAX_STRING-1]=0; // filespec of my binary if(!( - rsplit(site_config_path, '/') || - rsplit(site_config_path, '\\'))) { // strip filename + rsplit(beside_binary_path, '/') || + rsplit(beside_binary_path, '\\'))) { // strip filename // no path, just filename - site_config_path[0]='.'; site_config_path[1]=0; + beside_binary_path[0]='.'; beside_binary_path[1]=0; } char config_filespec[MAX_STRING]; snprintf(config_filespec, MAX_STRING, "%s/%s", - site_config_path, CONFIG_FILE_NAME); + beside_binary_path, AUTO_FILE_NAME); // process the request request.core( - config_filespec, false /*fail_on_read_problem*/, // /path/to/parser3.conf + config_filespec, false /*fail_on_read_problem*/, // /path/to/first/auto.p header_only); }