Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix display of dir_listing_handler headers. Thanks to soul9 and mycroftiv for r…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 6102c5bd6cc5153640258fd9a57eaeab7f1bc266
parent e6acb0386d12872e3efb967dbecbec8103325436
Author: [email protected] <unknown>
Date: Thu, 20 Nov 2008 05:21:15 +0100
Fix display of dir_listing_handler headers. Thanks to soul9 and mycroftiv for r…
Diffstat:
M bin/werc.rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -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">\…
echo '</ul>'
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.