From 378ca3ccb2cbd46cdacaa3138e56c9383e99a54e Mon Sep 17 00:00:00 2001 From: uriel Date: Sat, 14 Feb 2009 07:26:52 +0000 Subject: [PATCH] Correct dirfilter matching of /sitemap.txt and /robots.txt, note that we match them even if not 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 0975792..9668edd 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -10,7 +10,7 @@ forbidden_uri_chars='[^a-zA-Z0-9_+\-\/\.]' # Expected input: ls -F style, $sitedir/path/to/files/ # -dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/d; /^\/(robots|sitemap)\.txt$|\/index\.(md|html|txt|tpl)$/d; /_werc\/?$/d; ' +dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/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