Skip to content
Browse files

[blosxom] saner flavour regex, GwenDragon++

  • Loading branch information...
1 parent 012c4eb commit 96fa02e61b8d029e7b5df9947de514f928940222 @moritz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/blog-en.cgi
View
2 source/blog-en.cgi
@@ -113,7 +113,7 @@ while ($path_info[0] and $path_info[0] =~ /^[a-zA-Z].*$/ and $path_info[0] !~ /(
# Flavour specified by ?flav={flav} or index.{flav}
$flavour = '';
-if ( $path_info[$#path_info] =~ /(.+)\.(.+)$/ ) {
+if ( $path_info[$#path_info] =~ /(.+)\.([a-zA-Z0-9_-])$/ ) {
$flavour = $2;
$1 ne 'index' and $path_info .= "/$1.$2";
pop @path_info;

0 comments on commit 96fa02e

Please sign in to comment.
Something went wrong with that request. Please try again.