rc-httpd: fold two sed calls into one when computing location
This commit is contained in:
parent
498d86b921
commit
07f8584723
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ if(~ $REQUEST_URI *://* //*){
|
||||||
}
|
}
|
||||||
QUERY_STRING=`{echo $REQUEST_URI | sed 's;[^?]*\??;;'}
|
QUERY_STRING=`{echo $REQUEST_URI | sed 's;[^?]*\??;;'}
|
||||||
params=`{echo $QUERY_STRING | sed 's;\+; ;g'}
|
params=`{echo $QUERY_STRING | sed 's;\+; ;g'}
|
||||||
location=`{echo $REQUEST_URI | sed 's;\?.*;;'}
|
location=`{echo $REQUEST_URI | sed '
|
||||||
location=`{echo $location | sed '
|
s;\?.*;;
|
||||||
s;[^/]+/\.\./;/;g
|
s;[^/]+/\.\./;/;g
|
||||||
s;/\./;/;g
|
s;/\./;/;g
|
||||||
s;//+;/;g
|
s;//+;/;g
|
||||||
|
|
Loading…
Reference in a new issue