projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d5c3f
)
Fix file submit
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 8 Feb 2014 21:55:51 +0000
(23:55 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 8 Feb 2014 21:55:51 +0000
(23:55 +0200)
lib/Gruntmaster/Page/Submit.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Submit.pm
b/lib/Gruntmaster/Page/Submit.pm
index b08399e005d4f74e0b666aceafcee0e0decb39d1..0159a9d06865f7a3f1132324e171bf310a4c748a 100644
(file)
--- 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+$/ ;
This page took
0.010661 seconds
and
4
git commands to generate.