--- parser3/src/classes/image.C 2001/04/11 17:06:10 1.9 +++ parser3/src/classes/image.C 2001/04/11 17:47:01 1.10 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: image.C,v 1.9 2001/04/11 17:06:10 paf Exp $ + $Id: image.C,v 1.10 2001/04/11 17:47:01 paf Exp $ */ #include "pa_config_includes.h" @@ -361,7 +361,6 @@ static void _create(Request& r, const St /// ^image.gif[] /// ^image.gif[user-file-name] -/// @test gdImageDestroy make gd pooled! static void _gif(Request& r, const String& method_name, Array *params) { Pool& pool=r.pool(); @@ -380,10 +379,12 @@ static void _gif(Request& r, const Strin file_name_cstr=vfile_name.as_string().cstr(String::UL_FILE_NAME); } // could _ but don't thing it's wise to use $image.src for vfile.name + + String out(pool); image->Gif(out); VFile& vfile=*new(pool) VFile(pool); String& image_gif=*new(pool) String(pool, "image/gif"); - vfile.set(false/*not tainted*/, z, z, file_name_cstr, &image_gif); + vfile.set(false/*not tainted*/, out.cstr(), out.size(), file_name_cstr, &image_gif); r.write_no_lang(vfile); }