X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=a979a0d29da750919f37b77998171717430dca21;hp=2fd086149ff63fd7838de45be2f1c6a431901f4f;hb=883a55b423a8f17970d31086175eb6a307dc03e5;hpb=724889277de88cc8d63e4516d74564cf1ba2ac11 diff --git a/blosxom.cgi b/blosxom.cgi index 2fd0861..a979a0d 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -183,7 +183,7 @@ sub load_template { return &$template(@_); } -# Define default find subroutine +# Define default entries subroutine $entries = sub { my(%files, %indexes, %others); @@ -363,7 +363,7 @@ sub generate { ($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";