Skip to content

Commit 7e33f21

Browse files
authored
Merge pull request #2745 from drgrice1/bugfix/no-empty-uploads
Add back the "real" upload check.
2 parents c818053 + 127bc6d commit 7e33f21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/WeBWorK.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ async sub dispatch ($c) {
108108
my @uploads = @{ $c->req->uploads };
109109

110110
for my $u (@uploads) {
111+
# Make sure it's a "real" upload.
112+
next unless $u->filename;
113+
111114
# Store the upload.
112115
my $upload = WeBWorK::Upload->store($u, $ce->{webworkDirs}{uploadCache});
113116

0 commit comments

Comments
 (0)