From b236e7d95d13b98e3e77028705a5d01c7fd79c46 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 13 Jan 2018 12:53:50 +0100 Subject: [PATCH] [PHP-2379] added quotes --- include/tests_php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/tests_php b/include/tests_php index 902b25c1..dd5f2502 100644 --- a/include/tests_php +++ b/include/tests_php @@ -338,14 +338,14 @@ fi # Check Suhosin for PHP 7 - if [ ! -z ${MAJOR_VERSION} -a ${FOUND} -eq 1 ]; then + if [ ! -z "${MAJOR_VERSION}" -a ${FOUND} -eq 1 ]; then LogText "Test: Check Suhosin for PHP 7 is not enabled" LogText "Result: Suhosin for PHP 7 is in alpha stage and should not be used in production" ReportSuggestion ${TEST_NO} "Disable Suhosin for PHP 7" Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_WARNING}" --color RED Display --indent 6 --text "- Suhosin is enabled for PHP 7" --result "${STATUS_WARNING}" --color RED AddHP 0 1 - elif [ ! -z ${MAJOR_VERSION} -a ${FOUND} -eq 0 ]; then + elif [ ! -z "${MAJOR_VERSION}" -a ${FOUND} -eq 0 ]; then LogText "Test: Check Suhosin for PHP 7 is not enabled" LogText "Result: Suhosin for PHP 7 is not enabled" Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_OK}" --color GREEN @@ -358,13 +358,12 @@ ReportSuggestion ${TEST_NO} "Harden PHP by enabling suhosin extension" LogText "suhosin extension is not enabled" AddHP 0 1 - else LogText "Result: Suhosin extension is enabled" Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_OK}" --color GREEN AddHP 2 2 fi - + if [ "${SIMULATION}" = "off" ]; then LogText "Result: Suhosin simulation mode is not active" Display --indent 6 --text "- Suhosin simulation mode status" --result "${STATUS_OK}" --color GREEN