diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-03-23 17:52:15 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-03-23 17:52:15 +0100 |
commit | c9bdb45ba6fc5768a0625f7e065220a6fb28a806 (patch) | |
tree | f05de830b1e7c2a1e63fbefab2870370cac23953 | |
parent | 77a5371d73175d63c9c2edf190cb1ca58944e79f (diff) |
sync with ikiwiki 3.20160509
-rw-r--r-- | IkiWiki/Plugin/img.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index 494fe23..740c44f 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -39,7 +39,7 @@ sub allowed { $allowed = ['jpeg', 'png', 'gif', 'svg'] unless defined $allowed && @$allowed; foreach my $a (@$allowed) { - return 1 if $a eq $format || $a eq 'everything'; + return 1 if lc($a) eq $format || lc($a) eq 'everything'; } return 0; @@ -89,7 +89,7 @@ sub preprocess (@) { my $extension; my $format; - if ($base =~ m/\.([a-z0-9]+)$/) { + if ($base =~ m/\.([a-z0-9]+)$/is) { $extension = $1; } else { |