From 55d12e5dac095bb9c28480c0c1fd598ee17b36f8 Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 26 Jan 2009 04:51:06 +0100 Subject: [PATCH] Handle dir listing of site root. --- bin/werc.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/werc.rc b/bin/werc.rc index 7187a4d..44fb523 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -69,6 +69,8 @@ fn txt_handler { fn dir_listing_handler { d=`{basename -d $1} + if(~ $#d 0) + d='/' echo $d|sed 's,.*//,,g; s,/$,,; s,/, / ,g; s,.*,

&