]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
undef $fh before opening
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 8 Jul 2008 16:16:36 +0000 (12:16 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 8 Jul 2008 16:16:36 +0000 (12:16 -0400)
IkiWiki/Plugin/attachment.pm
doc/bugs/attachment:_failed_to_get_filehandle.mdwn

index ed1cd61fe567c3d5cf845e5c647850de8556aa26..53d826178891a901bb1750949d2abaf638bcc693 100644 (file)
@@ -142,6 +142,7 @@ sub formbuilder (@) { #{{{
                                if (! defined $fh || ! ref $fh) {
                                        # even that doesn't always work,
                                        # fall back to opening the tempfile
+                                       $fh=undef;
                                        open($fh, "<", $tempfile) || error("failed to open $tempfile: $!");
                                }
                        }
index 8a9e1dde08d8f69884e8ec64cf7fbdfed000fc63..765082cf970734729ec9b4363e19eeec9e223325 100644 (file)
@@ -70,6 +70,8 @@ the error message like below:
 
 >>>>>>>> I can rebuild Debian stable source package with CGI for Perl. Maybe it will help me? What do you think? --[[PaweÅ‚|ptecza]]
 
+>>>>>>>>> Silly thinko on my part, fixed that in git.. --[[Joey]]
+
 The same message I can see in the Apache log file. There is also
 following warning: