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

This commit is contained in:
Uriel 2008-11-20 05:21:15 +01:00
parent c7460104dc
commit c59743ff18

View file

@ -121,7 +121,7 @@ fn txt_handler {
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>'