--- parser3/src/main/untaint.C 2001/05/19 19:10:20 1.50 +++ parser3/src/main/untaint.C 2001/06/28 07:44:17 1.53 @@ -4,9 +4,8 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: untaint.C,v 1.50 2001/05/19 19:10:20 parser Exp $ */ +static const char *RCSId="$Id: untaint.C,v 1.53 2001/06/28 07:44:17 parser Exp $"; #include "pa_pool.h" #include "pa_string.h" @@ -117,9 +116,12 @@ inline bool need_quote_http_header(const return false; } -/** - @todo fix theoretical \n mem overrun in TYPO replacements -*/ +/// @todo maybe additional check "are all pieces are clean?" would be profitable? +size_t String::cstr_bufsize(Untaint_lang lang) const { + return (lang==UL_AS_IS?size():size()*UNTAINT_TIMES_BIGGER) +1; +} + +/// @todo fix theoretical \n mem overrun in TYPO replacements char *String::store_to(char *dest, Untaint_lang lang, SQL_Connection *connection, const char *charset) const {