summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-09-21 16:22:32 +0200
committerJonas Smedegaard <dr@jones.dk>2017-09-21 16:22:32 +0200
commit024fe133ebb3203b96dc2ad1be6b11e3767924b0 (patch)
tree04147da2ef5f7040d0550be131e487da641018e9 /IkiWiki/Plugin
parent45df787203f0f0b0c92fddf74bbcea15b69d4dde (diff)
Sync with ikiwiki 3.20160509.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/img.pm4
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 {