shithub: werc

Download patch

ref: 0c8f22d0359815f84a870fafbfbf19155e3970cc
parent: 29ca8d3cc55c733fb6d82fca84501cd212c4283f
author: Uriel <u@berlinblue.org>
date: Sun Apr 25 07:58:40 EDT 2010

Add sitemap.xml to dirfilter so it doesn't show up in dir listings when no index exists in site root.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -11,7 +11,7 @@
 
 # Expected input: ls -F style, $sitedir/path/to/files/
 #          <ls -F+x><symlink hack><Useless?><hiden 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
--