--- parser3/src/classes/image.C 2002/11/22 16:16:33 1.80 +++ parser3/src/classes/image.C 2002/11/25 14:57:32 1.82 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_IMAGE_C="$Date: 2002/11/22 16:16:33 $"; +static const char* IDENT_IMAGE_C="$Date: 2002/11/25 14:57:32 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -78,7 +78,7 @@ public: value, whence, strerror(errno), errno, fname); } - /*override*/long tell() { return ::tell(f); } + /*override*/long tell() { return lseek(f, 0, SEEK_CUR); } private: Pool& pool; @@ -637,7 +637,7 @@ static void _html(Request& r, const Stri Value &vattribs=r.process_to_value(params->get(0), /*0/*no name* /,*/ false/*don't intercept string*/); - if(vattribs.is_defined()) // allow 'void' + if(!vattribs.is_string()) // allow empty if(attribs=vattribs.get_hash(&method_name)) { Attrib_info attrib_info={&tag, 0}; attribs->for_each(append_attrib_pair, &attrib_info);