From: Kevin Scaldeferri Date: Mon, 10 Jul 2006 22:24:47 +0000 (+0000) Subject: syntax error fix X-Git-Tag: v2_0_2~4 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=724889277de88cc8d63e4516d74564cf1ba2ac11;p=matthijs%2Fupstream%2Fblosxom.git syntax error fix --- 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";