Annotation of parser3/src/types/pa_vrequest.C, revision 1.9
1.2 paf 1: /** @file
1.5 paf 2: Parser: @b request class.
1.2 paf 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.9 ! parser 8: static const char *RCSId="$Id: date.C,v 1.6 2001/09/04 10:50:19 parser Exp $";
1.1 paf 9:
10: #include "pa_vrequest.h"
11: #include "pa_request.h"
12:
1.7 parser 13: // request: CLASS,method,field
1.1 paf 14: Value *VRequest::get_element(const String& aname) {
15: // $query $uri
16: const char *cstr=0;
17: if(aname=="query")
18: cstr=frequest.info.query_string;
19: if(aname=="uri")
20: cstr=frequest.info.uri;
21:
22: String& string=*NEW String(pool());
1.6 paf 23: string.APPEND_TAINTED(cstr?cstr:"", 0, "request", 0);
1.1 paf 24: return NEW VString(string);
25: }
26:
E-mail: