X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;ds=sidebyside;f=yarrg%2Fcommod-update-receiver;h=2059ad792416710584c279eb1d2de63032220339;hb=HEAD;hp=123ca0cd7acc0c3778555ff786aa843881232dd0;hpb=bb95133fcfbd4698daa59debdbaa73a4d1e6252a;p=ypp-sc-tools.db-live.git diff --git a/yarrg/commod-update-receiver b/yarrg/commod-update-receiver index 123ca0c..0258a51 100755 --- a/yarrg/commod-update-receiver +++ b/yarrg/commod-update-receiver @@ -25,12 +25,16 @@ # are used without permission. This program is not endorsed or # sponsored by Three Rings. +BEGIN { unshift @INC, qw(.) } + use strict (qw(vars)); use POSIX; use MIME::Entity; use Commods; +no warnings qw(exec); + $CGI::POST_MAX= 3*1024*1024; use CGI qw/:standard -private_tempfiles/; @@ -129,7 +133,7 @@ foreach my $islands (values %$arches) { fail("unknown island ".errsan($o{'island'})) unless $island_found; $o{'timestamp'}= must_param('timestamp', "^([1-9]\\d{1,20})\$"); -fail("clock skew") if $o{'timestamp'} >= $now; +fail("clock skew") if $o{'timestamp'} > $now; my $indatafh= upload('data'); defined $indatafh or fail("data is not a file");