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
|
||||
|
||||
# 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,7 +358,6 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue