--- parser3/src/main/pa_request.C 2001/04/23 09:38:53 1.119 +++ parser3/src/main/pa_request.C 2001/04/26 11:37:40 1.121 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.C,v 1.119 2001/04/23 09:38:53 paf Exp $ + $Id: pa_request.C,v 1.121 2001/04/26 11:37:40 paf Exp $ */ #include "pa_config_includes.h" @@ -160,6 +160,7 @@ static void element2case(unsigned char * void Request::core(const char *root_auto_path, bool root_auto_fail, const char *site_auto_path, bool site_auto_fail, bool header_only) { + //_asm { int 3 } VStateless_class *main_class=0; bool need_rethrow=false; Exception rethrow_me; TRY { @@ -542,12 +543,12 @@ VStateless_class *Request::use_buf(const return &cclass; } -/// @test with commandline start "parser3 a.html" so that ^load[a.cfg] worked! [now doesnt] const String& Request::relative(const char *apath, const String& relative_name) { int lpath_buf_size=strlen(apath)+1; char *lpath=(char *)malloc(lpath_buf_size); memcpy(lpath, apath, lpath_buf_size); - rsplit(lpath, '/'); + if(!rsplit(lpath, '/')) + strcpy(lpath, "."); String& result=*NEW String(pool(), lpath); result << "/" << relative_name; return result;