From 0c8f22d0359815f84a870fafbfbf19155e3970cc Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 25 Apr 2010 11:58:40 +0000 Subject: [PATCH] Add sitemap.xml to dirfilter so it doesn't show up in dir listings when no index exists in site root. --- bin/werc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/werc.rc b/bin/werc.rc index c5d64f2..a9a7e3e 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -11,7 +11,7 @@ difs=$ifs # Used to restore default ifs when needed # Expected input: ls -F style, $sitedir/path/to/files/ # -dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/d; /\/index\.(md|html|txt|tpl)$/d; /\/(robots|sitemap)\.txt$/d; /_werc\/?$/d; ' +dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/d; /\/sitemap\.xml$/d; /\/index\.(md|html|txt|tpl)$/d; /\/(robots|sitemap)\.txt$/d; /_werc\/?$/d; ' dirclean=' s/\.(md|html|txt)$//; ' # Careful, the proper p9p path might not be set until initrc.local is sourced