[Koha-patches] [PATCH] Bugfix: Upping the byte size limit of patron images

Chris Nighswonger cnighswonger at foundations.edu
Wed Feb 3 19:07:32 CET 2010


This brings it more in line with the size limit placed on other images
uploaded for use on patron cards.
---
 tools/picture-upload.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl
index a28f259..c3f7b00 100755
--- a/tools/picture-upload.pl
+++ b/tools/picture-upload.pl
@@ -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 };
-- 
1.6.0.4




More information about the Koha-patches mailing list