rc-httpd: fold two sed calls into one when computing location

This commit is contained in:
Igor Böhm 2021-10-29 22:59:06 +00:00 committed by qwx
parent 498d86b921
commit 07f8584723

View file

@ -74,8 +74,8 @@ if(~ $REQUEST_URI *://* //*){
}
QUERY_STRING=`{echo $REQUEST_URI | sed 's;[^?]*\??;;'}
params=`{echo $QUERY_STRING | sed 's;\+; ;g'}
location=`{echo $REQUEST_URI | sed 's;\?.*;;'}
location=`{echo $location | sed '
location=`{echo $REQUEST_URI | sed '
s;\?.*;;
s;[^/]+/\.\./;/;g
s;/\./;/;g
s;//+;/;g