projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9faa0
)
check for tempfile being empty
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 8 Jul 2008 20:21:01 +0000
(16:21 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 8 Jul 2008 20:21:01 +0000
(16:21 -0400)
IkiWiki/Plugin/attachment.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/attachment.pm
b/IkiWiki/Plugin/attachment.pm
index 53d826178891a901bb1750949d2abaf638bcc693..f49fe63f770aef606ad8208bac4377a9e8c360e4 100644
(file)
--- a/
IkiWiki/Plugin/attachment.pm
+++ b/
IkiWiki/Plugin/attachment.pm
@@
-88,8
+88,8
@@
sub formbuilder (@) { #{{{
# of the temp file that CGI writes the upload to.
my $tempfile=$q->tmpFileName($filename);
- if (! defined $tempfile) {
- error("failed to determine temp
file
name");
+ if (! defined $tempfile
|| ! length $tempfile
) {
+ error("failed to determine temp
file
name");
}
$filename=IkiWiki::titlepage(