From 321eda21b622565eab6eeac25c7ebc5ef6e91dbb Mon Sep 17 00:00:00 2001 From: uriel Date: Tue, 29 May 2007 05:43:22 +0200 Subject: [PATCH] Allow numbers in paths! --- bin/controller.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index ccafa01..a43bdf8 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) -ifs='/' { args = `{ echo -n $REQUEST_URI | sed -e 's/[^a-zA-Z_\-\/]//g' -e 's/\?.*//' } } +ifs='/' { args = `{ echo -n $REQUEST_URI | sed -e 's/[^a-zA-Z0-9_\-\/]//g' -e 's/\?.*//' } } args=`{echo $args | tr -d ' '} cd ..