projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revert change 1.13 entirely due to incorrect behavior
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 2fd086149ff63fd7838de45be2f1c6a431901f4f..48a79b57bd32ab341a9bfb3b9a5a35faa909903a 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,$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";
# Prepend a slash for use in templates only if a path exists
$path &&= "/$path";