--- parser3/src/targets/cgi/parser3.C 2015/04/02 22:04:41 1.267 +++ parser3/src/targets/cgi/parser3.C 2016/11/25 23:35:45 1.271 @@ -1,11 +1,11 @@ /** @file Parser: scripting and CGI main. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.267 2015/04/02 22:04:41 moko Exp $"; +volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.271 2016/11/25 23:35:45 moko Exp $"; #include "pa_config_includes.h" @@ -430,7 +430,7 @@ static void real_parser_handler(const ch if(!script_name) SAPI::die("CGI: illegal call (missing SCRIPT_NAME)"); - const char* env_request_uri=getenv("REQUEST_URI"); + const char* env_request_uri=request_info.strip_absolute_uri(getenv("REQUEST_URI")); if(env_request_uri) request_info.uri=env_request_uri; else @@ -613,7 +613,7 @@ static void call_real_parser_handler__su static void usage(const char* program) { printf( "Parser/%s\n" - "Copyright (c) 2001-2013 Art. Lebedev Studio (http://www.artlebedev.com)\n" + "Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com)\n" "Author: Alexandr Petrosian (http://paf.design.ru)\n" "\n" "Usage: %s [options] file\n"