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 d573da0aa7
commit f5f19776df
2 changed files with 2 additions and 1 deletions

View File

@ -8,5 +8,5 @@ fn conf_perm_redirect {
fn conf_hide_paths { fn conf_hide_paths {
for(i in $*) 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 sed 's/^(.......................................................................................................[^ ]*).*$/\1/g; 1q' < $1
} }
# XXX Instead of recursion should use du(1) or similar.
fn listDir { fn listDir {
d=$1 d=$1
if(~ $#d 0) if(~ $#d 0)