--- parser3/src/main/untaint.C 2001/05/19 19:10:20 1.50 +++ parser3/src/main/untaint.C 2001/07/09 16:51:54 1.54 @@ -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.54 2001/07/09 16:51:54 parser Exp $"; #include "pa_pool.h" #include "pa_string.h" @@ -117,8 +116,13 @@ 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 +@todo rename base_64 to quoted_printable [invalid name now] */ char *String::store_to(char *dest, Untaint_lang lang, SQL_Connection *connection,