# Blosxom
# Author: Rael Dornfest <rael@oreilly.com>
-# Version: 2.0.1
+# Version: 2.0.2
# Home/Docs/Licensing: http://www.blosxom.com/
# Development/Downloads: http://sourceforge.net/projects/blosxom
use Time::localtime;
use CGI qw/:standard :netscape/;
-$version = "2.0";
+$version = "2.0.2";
my $fh = new FileHandle;
($path,$fn) = $path_file =~ m!^$datadir/(?:(.*)/)?(.*)\.$file_extension!;
# Only stories in the right hierarchy
- $path =~ /^$currentdir(?=$|/)/ or $path_file eq "$datadir/$currentdir" or next;
+ $path =~ /^$currentdir/ or $path_file eq "$datadir/$currentdir" or next;
# Prepend a slash for use in templates only if a path exists
$path &&= "/$path";