shithub: werc

Download patch

ref: 7920e368bec1bfc7d49c1a9ad2c0551593ac7048
parent: a7babb2c6f55db94015c4c84ae71336b56d05dd0
author: sl <uriel@engel.se.cat-v.org>
date: Wed Jan 21 04:26:13 EST 2009

Add comment about minnor bug.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -79,6 +79,7 @@
 
 fn dir_listing_handler {
     d=`{basename -d $1}
+    # XXX $d is based on $local_path, but should display only req_path here.
     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 $dir_listing_ls_opts $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'