]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Possible solution (stray 'my')
authorisbear <isbear@web>
Sun, 4 Nov 2012 11:32:49 +0000 (07:32 -0400)
committeradmin <admin@branchable.com>
Sun, 4 Nov 2012 11:32:49 +0000 (07:32 -0400)
doc/bugs/Slow_Filecheck_attachments___34__snails_it_all__34__/discussion.mdwn

index d0582cbffc475b2713f891676e4f63cb296ff41b..629aba71e3e98797352bf9450ae09974ad69291c 100644 (file)
@@ -130,3 +130,12 @@ This is nasty-scary results ! Something missed me or this mime-filecheck is plai
 
 
 --mathdesc
+
+> >        if ($mimeinfo_ok) {
+> >                my $mimetype=File::MimeInfo::Magic::magic($file);
+> >        }
+> 
+> That seems strange to me, `my` restricts scope of $mimetype to enclosing if block, thus, assigned value will be dropped - I think, it is the problem.
+> Try removing that stray `my`.
+>
+> --isbear