--- parser3/src/main/pa_xml_io.C 2021/11/09 15:54:59 1.43 +++ parser3/src/main/pa_xml_io.C 2025/05/26 01:56:54 1.47 @@ -1,15 +1,15 @@ /** @file Parser: plugins to xml library, controlling i/o; implementation - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #include "pa_xml_io.h" #ifdef XML -volatile const char * IDENT_PA_XML_IO_C="$Id: pa_xml_io.C,v 1.43 2021/11/09 15:54:59 moko Exp $" IDENT_PA_XML_IO_H; +volatile const char * IDENT_PA_XML_IO_C="$Id: pa_xml_io.C,v 1.47 2025/05/26 01:56:54 moko Exp $" IDENT_PA_XML_IO_H; #include "libxslt/extensions.h" @@ -19,7 +19,7 @@ volatile const char * IDENT_PA_XML_IO_C= THREAD_LOCAL HashStringBool* xml_dependencies = NULL; // every TLS should be referenced elsewhere, or GC will collect it -static void add_dependency(const String::Body url) { +static void add_dependency(const char *url) { if(xml_dependencies) // do we need to monitor now? xml_dependencies->put(url, true); } @@ -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);