Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling.
This commit is contained in:
parent
d573da0aa7
commit
f5f19776df
@ -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; '
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user