Index: branches/5.0.x/core/install/step_templates/security.tpl
===================================================================
diff -u -r12435 -r12457
--- branches/5.0.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 12435)
+++ branches/5.0.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 12457)
@@ -16,7 +16,8 @@
foreach ($check_paths as $check_path) {
$path_secure = true;
- if ($this->toolkit->checkWritePermissions(FULL_PATH . $check_path)) {
+ $path_check_status = $this->toolkit->checkWritePermissions(FULL_PATH . $check_path);
+ if (is_bool($path_check_status) && $path_check_status) {
$write_check = $path_secure = false;
}
@@ -81,13 +82,20 @@
foreach ($ini_vars as $var_name => $var_value) {
$current_value = ini_get($var_name);
+ if (is_numeric($current_value)) {
+ $formatted_value = $current_value ? 'On' : 'Off';
+ }
+ else {
+ $formatted_value = "'" . $current_value . "'";
+ }
+
if (($var_value && !$current_value) || (!$var_value && $current_value)) {
$directive_check = false;
- $message_text = 'set to On';
+ $message_text = 'set to ' . $formatted_value . '';
$status_text = '[Vulnerable]';
}
else {
- $message_text = 'set to Off';
+ $message_text = 'set to ' . $formatted_value . '';
$status_text = '[Secure]';
}