summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNEdit.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-03-30 14:46:50 +0200
committerYorhel <git@yorhel.nl>2011-03-30 15:43:45 +0200
commitcf0a38fca245446b4730813890386487dfd4f20b (patch)
tree6115c5fcb012356ef70e44149bea7c41e68e4fdb /lib/VNDB/Handler/VNEdit.pm
parent7c8306f215050243029cfc2dc22152a02476a285 (diff)
parent8a4ba7c5d44ce5970300eb5052cbbf383417f958 (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.pm2
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