--- parser3/src/classes/Attic/root.C 2001/03/10 11:18:13 1.8 +++ parser3/src/classes/Attic/root.C 2001/03/11 08:16:31 1.12 @@ -1,5 +1,9 @@ /* -$Id: root.C,v 1.8 2001/03/10 11:18:13 paf Exp $ + Parser + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) + + $Id: root.C,v 1.12 2001/03/11 08:16:31 paf Exp $ */ #include "pa_request.h" @@ -9,13 +13,14 @@ static void _if(Request& r, Array *param bool condition= r.autocalc( *static_cast(params->get(0)), + 0/*no name*/, false/*don't make it string*/).get_bool(); if(condition) { Value& value=r.autocalc(*static_cast(params->get(1))); - r.wcontext->write(value); + r.wcontext->write(value, String::Untaint_lang::PASS_APPENDED); } else if(params->size()==3) { Value& value=r.autocalc(*static_cast(params->get(2))); - r.wcontext->write(value); + r.wcontext->write(value, String::Untaint_lang::PASS_APPENDED); } }