Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling.
This commit is contained in:
parent
4811a4555b
commit
602819f2fa
2 changed files with 2 additions and 1 deletions
|
|
@ -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; '
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue