summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-23 14:57:13 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-23 14:57:13 -0400
commit8494104b395dc8b7bce045aec84460351c3efd1d (patch)
treec773756011dc10aa5036d20a834f9da4467a28b6
parentdfe55e8956fdcb8ee11b85b238a7d27f42063746 (diff)
layout
-rw-r--r--IkiWiki/Plugin/rename.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm
index 77aed9556..d6079e198 100644
--- a/IkiWiki/Plugin/rename.pm
+++ b/IkiWiki/Plugin/rename.pm
@@ -254,7 +254,8 @@ sub sessioncgi ($$) { #{{{
my $type=$q->param('type');
if (defined $type && length $type && $IkiWiki::hooks{htmlize}{$type}) {
$type=IkiWiki::possibly_foolish_untaint($type);
- } else {
+ }
+ else {
my ($ext)=$srcfile=~/\.([^.]+)$/;
$type=$ext;
}