--- parser3/src/main/pa_request.C 2005/07/08 14:06:11 1.274 +++ parser3/src/main/pa_request.C 2005/11/18 09:57:25 1.276 @@ -1,11 +1,11 @@ /** @file Parser: request class main part. @see compile.C and execute.C. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2005/07/08 14:06:11 $"; +static const char * const IDENT_REQUEST_C="$Date: 2005/11/18 09:57:25 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -389,6 +389,13 @@ gettimeofday(&mt[2],NULL); body_value=response.fields().get(body_name); // $response:body if(!body_value) body_value=new VString(*body_string); // just result of ^main[] + // ensure that body_value has no just L_TAINTED parts left + if(body_value->is_string()) + { + String& untainted=*new String(); + untainted.append(*body_value->get_string(), flang); + body_value=new VString(untainted); + } // @postprocess if(Value* value=main_class.get_element(post_process_method_name, main_class, false))