]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/filecheck.pm
response
[git.ikiwiki.info.git] / IkiWiki / Plugin / filecheck.pm
index a78058ffed7b15b46e1c1352c88ce70eebc4b00a..3b0a7b3148d4edc2bb5bf1c8d11af474dc28a1c7 100644 (file)
@@ -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 /;.*//) {