X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSubmit.pm;h=0159a9d06865f7a3f1132324e171bf310a4c748a;hb=95a9ad1be9a7e32f642d469acb006990c2b86151;hp=b08399e005d4f74e0b666aceafcee0e0decb39d1;hpb=68d5c3ff4f6e5c7bf1dd92b85e89883f1020aa8f;p=gruntmaster-page.git diff --git a/lib/Gruntmaster/Page/Submit.pm b/lib/Gruntmaster/Page/Submit.pm index b08399e..0159a9d 100644 --- a/lib/Gruntmaster/Page/Submit.pm +++ b/lib/Gruntmaster/Page/Submit.pm @@ -27,7 +27,7 @@ sub generate{ my ($problem, $format, $contest, $private, $prog) = map {scalar $r->param($_)} 'problem', 'prog_format', 'contest', 'private', 'source_code'; my $upload = $r->upload('prog'); if (defined $upload) { - my $temp = read_file $upload->filename; + my $temp = read_file $upload->path; $prog = $temp if $temp } die if defined $contest && $contest !~ /^\w+$/ ;