From 011c1f0a1750d2ff913302a3e5768de9287f0b0c Mon Sep 17 00:00:00 2001 From: Kevin Scaldeferri Date: Mon, 10 Jul 2006 20:39:35 +0000 Subject: [PATCH 1/1] fix bug 1445435. fixes cases like requests for category foo also getting category foobar --- blosxom.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blosxom.cgi b/blosxom.cgi index a979a0d..48ee5c1 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -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