projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b55ac
)
add a missing chomp
author
Joey Hess
<joey@kitenet.net>
Wed, 20 Oct 2010 01:37:31 +0000
(21:37 -0400)
committer
Joey Hess
<joey@kitenet.net>
Wed, 20 Oct 2010 01:38:34 +0000
(21:38 -0400)
IkiWiki/Plugin/filecheck.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/filecheck.pm
b/IkiWiki/Plugin/filecheck.pm
index a78058ffed7b15b46e1c1352c88ce70eebc4b00a..3b0a7b3148d4edc2bb5bf1c8d11af474dc28a1c7 100644
(file)
--- a/
IkiWiki/Plugin/filecheck.pm
+++ b/
IkiWiki/Plugin/filecheck.pm
@@
-148,6
+148,7
@@
sub match_mimetype ($$;@) {
if (! defined $mimetype) {
open(my $file_h, "-|", "file", "-bi", $file);
$mimetype=<$file_h>;
+ chomp $mimetype;
close $file_h;
}
if (! defined $mimetype || $mimetype !~s /;.*//) {