diff options
author | Igor Böhm <igor@9lab.org> | 2021-10-29 22:59:06 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2021-10-29 22:59:06 +0000 |
commit | 07f858472356480206c056ae0c0ecf6431a73ae2 (patch) | |
tree | 5a0a72b101b2e6427472425e1be1efd5d96178cd /rc/bin | |
parent | 498d86b9218287b2b5c16aa54a283249fbd4e5a3 (diff) |
rc-httpd: fold two sed calls into one when computing location
Diffstat (limited to 'rc/bin')
-rwxr-xr-x | rc/bin/rc-httpd/rc-httpd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/rc-httpd/rc-httpd b/rc/bin/rc-httpd/rc-httpd index bd9dc7808..3fd49fbf0 100755 --- a/rc/bin/rc-httpd/rc-httpd +++ b/rc/bin/rc-httpd/rc-httpd @@ -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 |