--- parser3/src/main/untaint.C 2015/10/26 01:21:59 1.170 +++ parser3/src/main/untaint.C 2024/05/26 18:36:01 1.178 @@ -1,11 +1,11 @@ /** @file Parser: String class part: untaint mechanizm. - Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_UNTAINT_C="$Id: untaint.C,v 1.170 2015/10/26 01:21:59 moko Exp $"; +volatile const char * IDENT_UNTAINT_C="$Id: untaint.C,v 1.178 2024/05/26 18:36:01 moko Exp $"; #include "pa_string.h" @@ -20,7 +20,7 @@ volatile const char * IDENT_UNTAINT_C="$ #include "pa_sapi.h" extern "C" { // author forgot to do that -#include "ec.h" +#include "../lib/cord/include/ec.h" } #include "pa_sql_connection.h" @@ -179,6 +179,25 @@ int append_fragment_nonoptimizing(char a return 0; // 0=continue } + +/** + appends to other String without language change +*/ + +String& String::append_to(String& dest) const { + if(is_empty()) + return dest; + + // first: fragment infos + dest.langs.appendHelper(dest.body, langs, body); + + // next: letters + dest.body<(to_lang)); // should never + SAPI::die("unknown untaint language #%d", static_cast(to_lang)); // should never break; // never }