diff --git a/include/functions b/include/functions index 16a65b29..321e2b2d 100644 --- a/include/functions +++ b/include/functions @@ -1636,7 +1636,7 @@ FIND=$(cat ${TMP_NGINX_FILE} | sed 's/ /:space:/g') DEPTH=0 for I in ${FIND}; do - I=`echo ${I} | sed 's/:space:/ /g' | sed 's/;$//'` + I=`echo ${I} | sed 's/:space:/ /g' | sed 's/;$//' | sed 's/ #.*$//'` OPTION=`echo ${I} | awk '{ print $1 }'` VALUE=`echo ${I}| cut -d' ' -f2-` LogText "Result: found option ${OPTION} in ${CONFIG_FILE} with value '${VALUE}'"