revert change 1.13 entirely due to incorrect behavior
authorKevin Scaldeferri <kscaldef@users.sourceforge.net>
Mon, 10 Jul 2006 22:57:46 +0000 (22:57 +0000)
committerKevin Scaldeferri <kscaldef@users.sourceforge.net>
Mon, 10 Jul 2006 22:57:46 +0000 (22:57 +0000)
blosxom.cgi

index 2fd0861..48a79b5 100755 (executable)
@@ -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";