Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2018-01-13 14:53:50 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-01-13 14:53:50 +0300
commitb236e7d95d13b98e3e77028705a5d01c7fd79c46 (patch)
treeb4bbcdf7540acdd3efe22f9cece652a30494cabb /include/tests_php
parent332cc49be388baae85fc05f0b4413680c9d73107 (diff)
[PHP-2379] added quotes
Diffstat (limited to 'include/tests_php')
-rw-r--r--include/tests_php7
1 files 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