swerc

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

commit 84c4b9e784d3f8e7de7d2cd2050011641437fc85
parent 6ce48a29416abbbd48e017170131087b14b7a5d3
Author: uriel@soma <unknown>
Date:   Sun, 19 Apr 2009 23:56:05 +0000

Don't add extra / to url when we redirect to proper path in wman
Diffstat:
Mapps/wman/app.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/wman/app.rc b/apps/wman/app.rc @@ -38,7 +38,7 @@ fn wman_init { if not if(~ $req_path $wman_base_uri^*/) handler_body_main=(tpl_handler apps/wman/page_list.tpl) if not if(~ $p(2) [A-Z]* [0-9][A-Z]*) # Correct badly capitalized links - perm_redirect $wman_base_uri/^$p(1)^/^`{echo $p(2) |tr 'A-Z' 'a-z'} + perm_redirect $wman_base_uri^$p(1)^/^`{echo $p(2) |tr 'A-Z' 'a-z'} } # Search