aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-19 21:37:31 -0400
committerJoey Hess <joey@kitenet.net>2010-10-19 21:38:34 -0400
commit9b832df0d257e3d358ead63fd865d2a6b1914e19 (patch)
treea70aefb8cb43751503519eb4bfa3c8a3a5fa7dac /IkiWiki
parenta0b55ac3cd4f840f62d0441e3b1fe9b95ec15007 (diff)
downloadikiwiki-9b832df0d257e3d358ead63fd865d2a6b1914e19.tar
ikiwiki-9b832df0d257e3d358ead63fd865d2a6b1914e19.tar.gz
add a missing chomp
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/filecheck.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/filecheck.pm b/IkiWiki/Plugin/filecheck.pm
index a78058ffe..3b0a7b314 100644
--- 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 /;.*//) {