shithub: werc

Download patch

ref: 321eda21b622565eab6eeac25c7ebc5ef6e91dbb
parent: 83a98a6a64b4e1ac5d9b7a2eed1758e392e56028
author: uriel <uriel@engel.se.cat-v.org>
date: Tue May 29 01:43:22 EDT 2007

Allow numbers in paths!

--- 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 ..