--- parser3/src/main/pa_request.C 2001/03/13 19:35:06 1.30 +++ parser3/src/main/pa_request.C 2001/03/14 09:02:52 1.32 @@ -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.32 2001/03/14 09:02:52 paf Exp $ */ #include @@ -15,9 +15,10 @@ #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) @@ -252,8 +253,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; }