projects
/
matthijs
/
upstream
/
blosxom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f44af6e
)
fix bug 1445435.
author
Kevin Scaldeferri
<kscaldef@users.sourceforge.net>
Mon, 10 Jul 2006 20:39:35 +0000
(20:39 +0000)
committer
Kevin Scaldeferri
<kscaldef@users.sourceforge.net>
Mon, 10 Jul 2006 20:39:35 +0000
(20:39 +0000)
fixes cases like requests for category foo also getting category foobar
blosxom.cgi
patch
|
blob
|
history
diff --git
a/blosxom.cgi
b/blosxom.cgi
index a979a0d29da750919f37b77998171717430dca21..48ee5c1f7668cf7bd136522e887a29d9934f0a2f 100755
(executable)
--- 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";