--- parser3/src/main/pa_request.C 2001/03/13 19:35:06 1.30 +++ parser3/src/main/pa_request.C 2001/03/14 16:47:33 1.33 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.C,v 1.30 2001/03/13 19:35:06 paf Exp $ + $Id: pa_request.C,v 1.33 2001/03/14 16:47:33 paf Exp $ */ #include @@ -15,25 +15,24 @@ #include "_root.h" #include "_env.h" #include "_table.h" -#include "core.h" +#include "pa_globals.h" #include "pa_vint.h" #include "pa_vmframe.h" +#include "pa_types.h" #define NEW_STRING(name, value) name=NEW String(pool()); name->APPEND_CONST(value) #define LOCAL_STRING(name, value) String name(pool()); name.APPEND_CONST(value) Request::Request(Pool& apool, - String::Untaint_lang alang, - const char *adocument_root, - const char *apage_filespec) : Pooled(apool), + Info& ainfo, + String::Untaint_lang alang) : Pooled(apool), stack(apool), root_class(apool), env_class(apool), form_class(apool), fclasses(apool), flang(alang), - fdocument_root(adocument_root), - fpage_filespec(apage_filespec) + info(ainfo) { // root superclass, // parent of all classes, @@ -83,6 +82,7 @@ char *Request::core(const char *sys_auto } // TODO: использовать $MAIN:limits здесь, пока их не сломали враги + form_class.fill_fields(*this, 0/*todo: max post buf*/); // TODO: load site auto.p files, all assigned bases from upper dir char *site_auto_file="Y:\\parser3\\src\\auto.p"; @@ -252,8 +252,8 @@ void Request::fail_if_junction_(bool is, char *Request::relative(const char *path, const char *file) { char *result=(char *)malloc(strlen(path)+strlen(file)+1); strcpy(result, path); - rsplit(result,'/'); - strcat(result, "/"); + rsplit(result, PATH_DELIMITER_CHAR); + strcat(result, PATH_DELIMITER_STRING); strcat(result, file); return result; }