Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling.

This commit is contained in:
Uriel 2009-02-05 03:16:14 +00:00
parent 4811a4555b
commit 602819f2fa
2 changed files with 2 additions and 1 deletions

View file

@ -8,5 +8,5 @@ fn conf_perm_redirect {
fn conf_hide_paths {
for(i in $*)
dirfilter=$dirfilter^'/^'$i'$/d; '
dirfilter=$dirfilter^'/'^`{echo $i|sed 's!/!\\/!g'}^'/d; '
}

View file

@ -9,6 +9,7 @@ fn getMdDesc {
sed 's/^(.......................................................................................................[^ ]*).*$/\1/g; 1q' < $1
}
# XXX Instead of recursion should use du(1) or similar.
fn listDir {
d=$1
if(~ $#d 0)