Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bugfix
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
filecheck.pm
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 /;.*//) {