diff options
author | Yorhel <git@yorhel.nl> | 2011-03-30 14:46:50 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-03-30 15:43:45 +0200 |
commit | cf0a38fca245446b4730813890386487dfd4f20b (patch) | |
tree | 6115c5fcb012356ef70e44149bea7c41e68e4fdb /lib/VNDB/Handler/VNEdit.pm | |
parent | 7c8306f215050243029cfc2dc22152a02476a285 (diff) | |
parent | 8a4ba7c5d44ce5970300eb5052cbbf383417f958 (diff) |
Merge branch 'meh' of g.blicky.net:vndb into beta2.19
Conflicts:
data/lang.txt
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index 82f7e169..ce564fc0 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -128,7 +128,7 @@ sub _uploadimage { # perform some elementary checks my $imgdata = $self->reqUploadRaw('img'); $frm->{_err} = [ 'noimage' ] if $imgdata !~ /^(\xff\xd8|\x89\x50)/; # JPG or PNG headers - $frm->{_err} = [ 'toolarge' ] if length($imgdata) > 512*1024; + $frm->{_err} = [ 'toolarge' ] if length($imgdata) > 5*1024*1024; return undef if $frm->{_err}; # get image ID and save it, to be processed by Multi |