]> iEval git - gruntmaster-page.git/commitdiff
Fix file submit
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 8 Feb 2014 21:55:51 +0000 (23:55 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 8 Feb 2014 21:55:51 +0000 (23:55 +0200)
lib/Gruntmaster/Page/Submit.pm

index b08399e005d4f74e0b666aceafcee0e0decb39d1..0159a9d06865f7a3f1132324e171bf310a4c748a 100644 (file)
@@ -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+$/ ;
This page took 0.02798 seconds and 4 git commands to generate.