--- parser3/src/classes/hashfile.C 2023/09/26 20:49:05 1.65 +++ parser3/src/classes/hashfile.C 2026/04/25 13:38:46 1.69 @@ -1,7 +1,7 @@ /** @file Parser: @b hashfile parser class. - Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ @@ -12,7 +12,7 @@ #include "pa_vhashfile.h" #include "pa_vhash.h" -volatile const char * IDENT_HASHFILE_C="$Id: hashfile.C,v 1.65 2023/09/26 20:49:05 moko Exp $"; +volatile const char * IDENT_HASHFILE_C="$Id: hashfile.C,v 1.69 2026/04/25 13:38:46 moko Exp $"; // class @@ -42,7 +42,7 @@ static void _open(Request& r, MethodPara r.classes_conf.put(OPEN_DATA_NAME, file_list); } - const String& file_spec=r.full_disk_path(params.as_string(0, FILE_NAME_MUST_BE_STRING)); + const String& file_spec=r.full_disk_path(params.as_file_name(0)); if(file_list->get(file_spec)) throw Exception(PARSER_RUNTIME, 0, @@ -98,7 +98,7 @@ static bool one_foreach_cycle( void* ainfo) { Foreach_info& info=*static_cast(ainfo); if(info.key_var_name){ - VString* vkey=new VString(*new String(key, String::L_TAINTED)); + VString* vkey=new VString(key); info.r->put_element(*info.var_context, *info.key_var_name, vkey); } if(info.value_var_name){