Annotation of parser3/src/types/pa_vrequest.C, revision 1.1

1.1     ! paf         1: /*
        !             2:        Parser
        !             3:        Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com)
        !             4:        Author: Alexander Petrosyan <paf@design.ru>(http://design.ru/paf)
        !             5: 
        !             6:        $Id: pa_vrequest.C,v 1.3 2001/03/15 09:04:08 paf Exp $
        !             7: */
        !             8: 
        !             9: #include "pa_vrequest.h"
        !            10: #include "pa_request.h"
        !            11: 
        !            12: // request: CLASS,BASE,method,field
        !            13: Value *VRequest::get_element(const String& aname) {
        !            14:        // $CLASS,$BASE,$method
        !            15:        if(Value *result=VStateless_class::get_element(aname))
        !            16:                return result;
        !            17:        
        !            18:        // $query $uri 
        !            19:        const char *cstr=0;
        !            20:        if(aname=="query")
        !            21:                cstr=frequest.info.query_string;
        !            22:        if(aname=="uri")
        !            23:                cstr=frequest.info.uri;
        !            24:        if(!cstr)
        !            25:                return 0;
        !            26:        
        !            27:        String& string=*NEW String(pool());
        !            28:        string.APPEND_TAINTED(cstr, 0, "request", 0);
        !            29:        return NEW VString(string);
        !            30: }
        !            31: 

E-mail: