mirror of https://github.com/CISOfy/lynis.git
[PHP-2379] added quotes
This commit is contained in:
parent
332cc49be3
commit
b236e7d95d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue