From fb51a9dfe855952ef5753206485eb6c75e743476 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 28 Jun 2008 04:15:15 +0200 Subject: [PATCH] Fix regexp to handle dots in path elements (brown paper bag bug) --- bin/controller.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index aa41f76..9ddda93 100755 --- 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} }