From 07f858472356480206c056ae0c0ecf6431a73ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20B=C3=B6hm?= Date: Fri, 29 Oct 2021 22:59:06 +0000 Subject: [PATCH] rc-httpd: fold two sed calls into one when computing location --- rc/bin/rc-httpd/rc-httpd | 4 ++-- 1 file 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