--- parser3/src/classes/image.C 2010/08/05 12:05:38 1.135 +++ parser3/src/classes/image.C 2011/05/27 06:55:47 1.137 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_IMAGE_C="$Date: 2010/08/05 12:05:38 $"; +static const char * const IDENT_IMAGE_C="$Date: 2011/05/27 06:55:47 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -43,10 +43,6 @@ public: // VStateless_class public: MImage(); - -public: // Methoded - bool used_directly() { return true; } - }; // globals @@ -901,11 +897,13 @@ static void _gif(Request& r, MethodParam gdBuf buf=image.Gif(); VFile& vfile=*new VFile; - Value* content_type=new VString(*new String("image/gif")); + vfile.set(false/*not tainted*/, (const char*)buf.ptr, buf.size, file_name? file_name->taint_cstr(String::L_FILE_SPEC): 0, - content_type); + new VString(*new String("image/gif"))); + + vfile.set_mode(false/*binary*/); r.write_no_lang(vfile); }