commit a6e0feccbfa94775b398618b6049d7704015b20f
parent c59927f8381b80e8766bfcd82f70490de2c3e71c
Author: uriel@soma <unknown>
Date: Thu, 5 Feb 2009 03:16:14 +0000
Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/wercconf.rc b/bin/wercconf.rc
@@ -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; '
}
diff --git a/lib/sitemap.tpl b/lib/sitemap.tpl
@@ -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)