Allow numbers in paths!

This commit is contained in:
uriel 2007-05-29 05:43:22 +02:00
parent 83a98a6a64
commit 321eda21b6

View File

@ -1,7 +1,7 @@
#!/usr/local/plan9/bin/rc #!/usr/local/plan9/bin/rc
path=(. ./bin $PLAN9/bin /bin/ /usr/bin) 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 ' args=`{echo $args | tr -d '
'} '}
cd .. cd ..