--- parser3/src/main/untaint.C 2001/05/19 19:10:20 1.50 +++ parser3/src/main/untaint.C 2001/06/28 07:41:59 1.52 @@ -5,8 +5,9 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: untaint.C,v 1.50 2001/05/19 19:10:20 parser Exp $ + $Id: untaint.C,v 1.52 2001/06/28 07:41:59 parser Exp $ */ +static char *RCSId="$Id: untaint.C,v 1.52 2001/06/28 07:41:59 parser Exp $"; #include "pa_pool.h" #include "pa_string.h" @@ -117,9 +118,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 {