From 724889277de88cc8d63e4516d74564cf1ba2ac11 Mon Sep 17 00:00:00 2001 From: Kevin Scaldeferri Date: Mon, 10 Jul 2006 22:24:47 +0000 Subject: [PATCH] syntax error fix --- blosxom.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blosxom.cgi b/blosxom.cgi index 48ee5c1..2fd0861 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"; -- 2.30.2