--- parser3/src/main/untaint.C 2002/02/21 14:44:37 1.97 +++ parser3/src/main/untaint.C 2002/03/27 15:30:37 1.99 @@ -4,7 +4,7 @@ Copyright(c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: untaint.C,v 1.97 2002/02/21 14:44:37 paf Exp $ + $Id: untaint.C,v 1.99 2002/03/27 15:30:37 paf Exp $ */ #include "pa_pool.h" @@ -162,7 +162,7 @@ inline bool need_quote_http_header(const */ String& String::append(const String& src, uchar lang, bool forced) { if(!last_chunk) // growth stopped [we're appended as string to somebody] - throw Exception(0, 0, + throw Exception(0, this, "string growth stopped (append string)"); @@ -202,9 +202,6 @@ String& String::append(const String& src append_here=head.rows+head_count; } } else { // our head contains something -/* for(Chunk::Row *row=src.last_chunk->rows; rowlink==(void*)0xcdcdcdcd) - _asm int 3;*/ // "chopping off my tail-reserve" last_chunk->count=append_here-last_chunk->rows; // "you is my tail" @@ -439,7 +436,7 @@ char *String::store_to(char *dest, Untai if(connection) dest+=connection->quote(dest, row->item.ptr, row->item.size); else - throw Exception(0, 0, + throw Exception(0, this, "untaint in SQL language failed - no connection specified"); break; @@ -473,7 +470,7 @@ char *String::store_to(char *dest, Untai }); break; default: - throw Exception(0, 0, + throw Exception(0, this, "unknown untaint language #%d", static_cast(row->item.lang)); // sould never @@ -520,7 +517,7 @@ IFNDEF_NO_STRING_ORIGIN( ); uchar show_lang=row->item.lang & ~UL_OPTIMIZE_BIT; if(show_lang>=sizeof(String_Untaint_lang_name)/sizeof(String_Untaint_lang_name[0])) - throw Exception(0, 0, + throw Exception(0, this, "unknown untaint language #%d", static_cast(show_lang)); // sould never