From: Kevin Scaldeferri Date: Mon, 10 Jul 2006 20:39:35 +0000 (+0000) Subject: fix bug 1445435. X-Git-Tag: debian/2.1.2-2~122 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=011c1f0a1750d2ff913302a3e5768de9287f0b0c;p=pkg%2Fblosxom.git fix bug 1445435. fixes cases like requests for category foo also getting category foobar --- 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";