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

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

E-mail: