deny avatar if > 32kb; used to be 8 but JEP now has it at SHOULD from MUST for 8kb so be more tollerant

This commit is contained in:
Nikos Kouremenos 2005-12-02 20:35:19 +00:00
parent 5300975d31
commit 10d0b06d44

View file

@ -198,10 +198,10 @@ class VcardWindow:
pass
else:
filesize = os.path.getsize(f) # in bytes
if filesize > 8192: # 8 kb
if filesize > 32768: # 32 kb
dialogs.ErrorDialog(_('The filesize of image "%s" is too large')\
% os.path.basename(f),
_('The file must not be more than 8 kilobytes.')).get_response()
_('The file must not be more than 32 kilobytes.')).get_response()
continue
if self.image_is_ok(f):
done = True