swerc

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

commit be3f460c8831c4e9aad67464dec02d08d127acda
parent 39d6d186beffd4228d05677574286f513c23d23d
Author: uriel@suckless.org <unknown>
Date:   Sat, 28 Jun 2008 04:15:15 +0200

Fix regexp to handle dots in path elements (brown paper bag bug)
Diffstat:
Mbin/controller.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -1,7 +1,7 @@ #!/usr/local/plan9/bin/rc path=(. ./bin $PLAN9/bin /bin/ /usr/bin) -uri = `{echo -n $REQUEST_URI | sed -e 's/\?.*//; s/[^a-zA-Z0-9_+\-\/\.]//g; s/\.*/./g;' -e '1q'} +uri = `{echo -n $REQUEST_URI | sed -e 's/\?.*//; s/[^a-zA-Z0-9_+\-\/\.]//g; s/\.\.*/./g;' -e '1q'} ifs='/' { args = `{echo -n $uri} }