--- parser3/src/main/untaint.C 2026/10/13 20:02:01 1.183 +++ parser3/src/main/untaint.C 2026/11/29 13:17:21 1.184 @@ -5,7 +5,7 @@ Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_UNTAINT_C="$Id: untaint.C,v 1.183 2026/10/13 20:02:01 moko Exp $"; +volatile const char * IDENT_UNTAINT_C="$Id: untaint.C,v 1.184 2026/11/29 13:17:21 moko Exp $"; #include "pa_string.h" @@ -17,7 +17,6 @@ volatile const char * IDENT_UNTAINT_C="$ #include "pa_common.h" #include "pa_charset.h" #include "pa_request_charsets.h" -#include "pa_sapi.h" extern "C" { // author forgot to do that #include "../lib/cord/include/ec.h" @@ -584,9 +583,10 @@ int cstr_to_string_body_block(String::La _default; ); break; - default: - SAPI::die("unknown untaint language #%d", static_cast(to_lang)); // should never - break; // never + default: // corrupted ^cache file or memcached value + info->exception="unknown untaint language"; + info->fragment_begin=fragment_end; + return 1; // stop processing. can't throw exception here } info->fragment_begin=fragment_end;