X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSubmit.pm;h=ea67c2b609b3b6c575c86f92e2a7f1014bec367c;hp=569fe9186f38c2cadff58d62af93767f43a4ce61;hb=fcd3a29c3144870f2a418a0dbf6093da26e6709f;hpb=6a9aaf149c09cd2e8ae1332e4f50abbb946870c2 diff --git a/lib/Gruntmaster/Page/Submit.pm b/lib/Gruntmaster/Page/Submit.pm index 569fe91..ea67c2b 100644 --- a/lib/Gruntmaster/Page/Submit.pm +++ b/lib/Gruntmaster/Page/Submit.pm @@ -24,6 +24,7 @@ sub generate{ die if defined $contest && $contest !~ /^\w+$/ ; die if defined $contest && (time > contest_end $contest); return reply 'A required parameter was not supplied' if grep { !defined } $problem, $format, $prog; + return reply 'Maximum source size is 10KB' if length $prog > 25 * 1024; return reply 'You must wait 30 seconds between jobs' unless time > lastjob ($r->user) + 30; set_lastjob $r->user;