shithub: werc

Download patch

ref: a77c9544ce026143736cee49beb6e9f2a4247318
parent: c6935b9314525c81071e53a9de0457a7f2ded4ee
author: uriel <uriel@engel.se.cat-v.org>
date: Thu Nov 20 00:21:15 EST 2008

Fix display of dir_listing_handler headers. Thanks to soul9 and mycroftiv for reporting this.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -121,7 +121,7 @@
 fn dir_listing_handler {
     d = `{basename -d $1}
     dt = `{echo $d|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g'} 
-    echo '<h1 class="dir-list-head">'^$dt^'</h1> <ul class="dir-list">'
+    echo '<h1 class="dir-list-head">'^$"dt^'</h1> <ul class="dir-list">'
     # XXX I'm not sure what the [^$] does there
     ls -F $d | sed -e $dirfilter' s,^'$sitedir'/.*/([^$].*),<li><a href="\1">\1</a></li>,'
     echo '</ul>'