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:
parent
5300975d31
commit
10d0b06d44
1 changed files with 2 additions and 2 deletions
|
@ -198,10 +198,10 @@ class VcardWindow:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
filesize = os.path.getsize(f) # in bytes
|
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')\
|
dialogs.ErrorDialog(_('The filesize of image "%s" is too large')\
|
||||||
% os.path.basename(f),
|
% 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
|
continue
|
||||||
if self.image_is_ok(f):
|
if self.image_is_ok(f):
|
||||||
done = True
|
done = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue