commit 4eb981c62cfdeaea12034d2bfaebb3fc98763b2e
parent 9394196cdb49be5732be1f4de0886189d193f378
Author: uriel@engel.se.cat-v.org <unknown>
Date: Tue, 20 Jan 2009 06:55:17 +0100
Allow to set optional dir listing sorting (ls) options with the config var: dir_listing_ls_opts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -81,7 +81,7 @@ fn dir_listing_handler {
d=`{basename -d $1}
echo $d|sed 's,.*//,,g; s,/$,,; s,/, / ,g; s,.*,<h1 class="dir-list-head">&</h1> <ul class="dir-list">,'
# Symlinks suck: '/.' forces ls to list the linked dir if $d is a symlink.
- ls -F $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'
+ ls -F $dir_listing_ls_opts $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'
echo '</ul>'
}