shithub: werc

Download patch

ref: ab030344d45b258030c0e498b66c8fea69218f5a
parent: f7a4596a8171352307e689997be732852c353fc0
author: uriel <[email protected]>
date: Sat Nov 15 15:30:08 EST 2008

Update dirfilter to hide .html .txt and .tpl indexes from listing too.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -22,7 +22,7 @@
 
 # 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 {