commit 4c81a9bb10bf57c280dc9af39e7c5621a4f0d85e
parent 8132a5b96b64eb6913603ec1d77c548109801589
Author: uriel@soma <unknown>
Date: Sat, 21 Feb 2009 00:03:11 +0000
In the sidebar tree, remove sitedir *after* we apply dirfilter.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc
@@ -6,7 +6,7 @@ fn nav_tree {
# Ignore stderr, last path element might be a file that doesn't exist (eg., foo for foo.md)
# /./ to deal with p9p's ls failure to follow dir symlinks otherwise
ls -F $sitedir/./$req_paths_list >[2]/dev/null \
- | sed 's!^'$sitedir'!!; '$dirfilter'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '$dirclean \
+ | sed $dirfilter'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; s!^'$sitedir'!!; '$dirclean \
| sort -u | awk -F/ '
function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
{