--- parser3/src/main/pa_xml_io.C 2025/05/26 00:52:15 1.46 +++ parser3/src/main/pa_xml_io.C 2026/09/28 02:52:42 1.49 @@ -1,7 +1,7 @@ /** @file Parser: plugins to xml library, controlling i/o; implementation - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ @@ -9,7 +9,7 @@ #ifdef XML -volatile const char * IDENT_PA_XML_IO_C="$Id: pa_xml_io.C,v 1.46 2025/05/26 00:52:15 moko Exp $" IDENT_PA_XML_IO_H; +volatile const char * IDENT_PA_XML_IO_C="$Id: pa_xml_io.C,v 1.49 2026/09/28 02:52:42 moko Exp $" IDENT_PA_XML_IO_H; #include "libxslt/extensions.h" @@ -88,8 +88,8 @@ static void *xmlFileOpenMonitor(const ch document_root="."; afilename=pa_strcat(document_root, &afilename[16]); } else { - if(!strstr(afilename, "http://")) { - if(strstr(afilename, "file://")) { + if(strncmp(afilename, "http://", 7)) { + if(!strncmp(afilename, "file://", 7)) { afilename+=7 /*strlen("file://")*/; #ifdef WIN32 if(afilename[0]=='/' && afilename[1] && afilename[2]==':' && afilename[3]=='/') { @@ -141,7 +141,7 @@ static void *xmlFileOpenMethod (const ch if(s) param_body.append_know_length(s, strlen(s)); - const String *body=r.execute_method(r.main_class, *method, new VString(*new String(param_body, String::L_TAINTED))); + const String *body=r.execute_method(r.main_class, *method, new VString(param_body)); if(!body) throw Exception(0, new String(afilename), "'%s' method not found in %s class", method_cstr, MAIN_CLASS_NAME); buf=body->untaint_cstr(String::L_XML);