X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=48a79b57bd32ab341a9bfb3b9a5a35faa909903a;hp=48ee5c1f7668cf7bd136522e887a29d9934f0a2f;hb=c9626e1f75bba2015a0522f907ca2a2155cd0cf6;hpb=011c1f0a1750d2ff913302a3e5768de9287f0b0c diff --git a/blosxom.cgi b/blosxom.cgi index 48ee5c1..48a79b5 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -183,7 +183,7 @@ sub load_template { return &$template(@_); } -# Define default entries subroutine +# Define default find 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";