--- parser3/src/main/pa_xml_io.C 2009/07/06 12:07:04 1.24 +++ parser3/src/main/pa_xml_io.C 2009/09/25 12:58:39 1.26 @@ -9,7 +9,7 @@ #ifdef XML -static const char * const IDENT="$Date: 2009/07/06 12:07:04 $"; +static const char * const IDENT="$Date: 2009/09/25 12:58:39 $"; #include "libxslt/extensions.h" @@ -106,9 +106,20 @@ xmlFileOpen_ReadIntoStream (const char* do_not_store_filename=adjust_buf; } else if(!strstr(do_not_store_filename, "http://")) - if(strstr(do_not_store_filename, "file://")) - do_not_store_filename+=7/*strlen("file://")*/; - else if(*do_not_store_filename && do_not_store_filename[1]!=':' && strstr(do_not_store_filename, "://")) { + if(strstr(do_not_store_filename, "file://")){ + do_not_store_filename+=7/*strlen("file://")*/; +#ifdef WIN32 + if( + do_not_store_filename[0]=='/' + && do_not_store_filename[1] + && do_not_store_filename[2]==':' + && do_not_store_filename[3]=='/' + ){ + // skip leading slash for absolute path file:///C:/path/to/file + do_not_store_filename++; + } +#endif + } else if(*do_not_store_filename && do_not_store_filename[1]!=':' && strstr(do_not_store_filename, "://")) { pa_xmlStopMonitoringDependencies(); return 0; // plug out [do not handle other prefixes] } @@ -201,7 +212,7 @@ xmlFileOpenMethod (const char* afilename Request::Execute_nonvirtual_method_result body= r.execute_nonvirtual_method(r.main_class, *method, vparam, true); if(body.string) { - buf=body.string->untaint_cstr(String::L_AS_IS); + buf=body.string->untaint_cstr(r.flang); } else throw Exception(0, new String(afilename),