master
Joey Hess 2008-09-23 14:57:13 -04:00
parent dfe55e8956
commit 8494104b39
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}