commit 30d30045b5293daba8ad905bdb43a5b19aef90b4
parent 136e9a5c100bab660e9b58d4c3f6e9b451e13204
Author: uriel@engel.se.cat-v.org <unknown>
Date: Sat, 15 Nov 2008 20:30:08 +0100
Update dirfilter to hide .html .txt and .tpl indexes from listing too.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -22,7 +22,7 @@ fn gentitle {
# Don't change var name or trailing ';', dirfilter might be changed from _werc/config!
# TODO: Specify the canonical path input format handled by dirfilter
-dirfilter = '/\/[._]/d; /'^$forbidden_uri_chars^'/d; /\/(robots.\txt|sitemap\.txt|index\.md)$/d; /_werc$/d; s,^\./,,; s,\.md$,,; s,\.html,,; s,\.txt,,; '
+dirfilter = '/\/[._]/d; /'^$forbidden_uri_chars^'/d; /\/(robots.\txt|sitemap\.txt|index\.(md|html|txt|tpl))$/d; /_werc$/d; s,^\./,,; s,\.md$,,; s,\.html,,; s,\.txt,,; '
# To be used from config files
fn hide_paths {