--- parser3/src/targets/cgi/parser3.C 2001/12/05 11:24:55 1.144 +++ parser3/src/targets/cgi/parser3.C 2001/12/05 11:26:42 1.145 @@ -4,7 +4,7 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: parser3.C,v 1.144 2001/12/05 11:24:55 paf Exp $ + $Id: parser3.C,v 1.145 2001/12/05 11:26:42 paf Exp $ */ #include "pa_config_includes.h" @@ -279,8 +279,9 @@ void real_parser_handler( throw Exception(0, 0, 0, "CGI: no PATH_INFO defined(in reinventing REQUEST_URI)"); - /* - they've changed this under IIS5. + +#ifndef WIN32 + // they've changed this under IIS5. if(const char *script_name=SAPI::get_env(pool, "SCRIPT_NAME")) { size_t script_name_len=strlen(script_name); size_t uri_len=strlen(request_info.uri); @@ -288,7 +289,7 @@ void real_parser_handler( script_name_len != uri_len) // under IIS they are the same SAPI::die("CGI: illegal call"); } - */ +#endif } else request_info.uri=0;