Bugfix: Upping the byte size limit of patron images
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 3 Feb 2010 18:07:32 +0000 (13:07 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 3 Feb 2010 20:11:23 +0000 (15:11 -0500)
This brings it more in line with the size limit placed on other images
uploaded for use on patron cards.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
tools/picture-upload.pl

index a28f259..c3f7b00 100755 (executable)
@@ -210,7 +210,7 @@ sub handle_file {
         }
         $debug and warn "Source: $source";
         my $size = (stat($source))[7];
-            if ($size > 200000) {    # This check is necessary even with image resizing to avoid possible security/performance issues...
+            if ($size > 550000) {    # This check is necessary even with image resizing to avoid possible security/performance issues...
                 $filerrors{'OVRSIZ'} = 1;
                 push my @filerrors, \%filerrors;
                 push @{ $count{filenames} }, { filerrors => \@filerrors, source => $filename, cardnumber => $cardnumber };