--- parser3/src/targets/cgi/parser3.C 2024/12/11 18:35:31 1.366 +++ parser3/src/targets/cgi/parser3.C 2026/04/25 13:38:46 1.368 @@ -1,11 +1,11 @@ /** @file Parser: scripting and CGI main. - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.366 2024/12/11 18:35:31 moko Exp $"; +volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.368 2026/04/25 13:38:46 moko Exp $"; #include "pa_config_includes.h" @@ -487,9 +487,11 @@ static void real_parser_handler(bool cgi const char* request_method=getenv("REQUEST_METHOD"); - if(!filespec_to_process) - SAPI::die("Parser/%s", PARSER_VERSION); - + if(!filespec_to_process){ + SAPI::send_error(*sapi_info, "Parser/" PARSER_VERSION); + exit(1); + } + // global request info Request_info request_info; RequestInfoController ric(&request_info, sapi_info); @@ -615,7 +617,7 @@ static void usage(const char* message=NU printf( "Parser/%s\n" - "Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com)\n" + "Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)\n" "Authors: Konstantin Morshnev , Alexandr Petrosian \n" "\n" "Usage: %s [options] [file]\n"