Fix regexp to handle dots in path elements (brown paper bag bug)
This commit is contained in:
parent
bc0727cef8
commit
fb51a9dfe8
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue