[PHP-2379] added quotes

This commit is contained in:
Michael Boelen 2018-01-13 12:53:50 +01:00
parent 332cc49be3
commit b236e7d95d
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 3 additions and 4 deletions

View File

@ -338,14 +338,14 @@
fi fi
# Check Suhosin for PHP 7 # 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 "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" 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" ReportSuggestion ${TEST_NO} "Disable Suhosin for PHP 7"
Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_WARNING}" --color RED 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 Display --indent 6 --text "- Suhosin is enabled for PHP 7" --result "${STATUS_WARNING}" --color RED
AddHP 0 1 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 "Test: Check Suhosin for PHP 7 is not enabled"
LogText "Result: 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 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" ReportSuggestion ${TEST_NO} "Harden PHP by enabling suhosin extension"
LogText "suhosin extension is not enabled" LogText "suhosin extension is not enabled"
AddHP 0 1 AddHP 0 1
else else
LogText "Result: Suhosin extension is enabled" LogText "Result: Suhosin extension is enabled"
Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_OK}" --color GREEN Display --indent 4 --text "- Checking PHP suhosin extension status" --result "${STATUS_OK}" --color GREEN
AddHP 2 2 AddHP 2 2
fi fi
if [ "${SIMULATION}" = "off" ]; then if [ "${SIMULATION}" = "off" ]; then
LogText "Result: Suhosin simulation mode is not active" LogText "Result: Suhosin simulation mode is not active"
Display --indent 6 --text "- Suhosin simulation mode status" --result "${STATUS_OK}" --color GREEN Display --indent 6 --text "- Suhosin simulation mode status" --result "${STATUS_OK}" --color GREEN