swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 0c82a4d8c564e93e7029d084d5f8496ad304cbe0
parent 7d9a6fe954a3d4120cdc1278220f66cd08e312cc
Author: uriel@suckless.org <unknown>
Date:   Fri,  4 Jul 2008 22:49:05 +0200

Fix to handle 'implicit dir paths' (ie., paths that match a dir but have no trailing /) properly in menu
Diffstat:
Mbin/controller.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -53,7 +53,7 @@ fn menu { path = $0 "/" } - if(index(ENVIRON["REQUEST_URI"], "/" path) == 1) { + if(index(ENVIRON["REQUEST_URI"] "/", "/" path) == 1) { if(isdir) { print "<li><a href=\"/" path "\" class=\"thisPage\">&raquo;<i> " bname "</i></a>" system("rc -c ''menu " path "''")