From 76dc084b3648f6569fdbd7e1115adee7eeac4c9a Mon Sep 17 00:00:00 2001 From: Markus Klein <klein.t3@mfc-linz.at> Date: Sun, 15 Apr 2012 10:55:23 +0200 Subject: [PATCH] [BUGFIX] Reports: Wrong indication for saltedpasswords The reports module shows a wrong status indication for saltedpasswords if it is configured to forceSalted. Change-Id: I7cb87cafb9867a45846ec8bb1e636000ffbaebbb Fixes: #36093 Releases: 6.0, 4.7, 4.6, 4.5 Reviewed-on: http://review.typo3.org/10522 Reviewed-by: Stefan Galinski Tested-by: Stefan Galinski Reviewed-by: Steffen Gebert Tested-by: Steffen Gebert --- .../class.tx_reports_reports_status_securitystatus.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/reports/reports/status/class.tx_reports_reports_status_securitystatus.php b/typo3/sysext/reports/reports/status/class.tx_reports_reports_status_securitystatus.php index f2e0761b062b..0af5dfe35899 100644 --- a/typo3/sysext/reports/reports/status/class.tx_reports_reports_status_securitystatus.php +++ b/typo3/sysext/reports/reports/status/class.tx_reports_reports_status_securitystatus.php @@ -276,10 +276,12 @@ class tx_reports_reports_status_SecurityStatus implements tx_reports_StatusProvi $severity = tx_reports_reports_status_Status::ERROR; $messageDetail .= $flashMessage; } - if (strpos($flashMessage, 'message-warning') !== FALSE || - strpos($flashMessage, 'message-information') !== FALSE) { + if (strpos($flashMessage, 'message-warning') !== FALSE) { $severity = tx_reports_reports_status_Status::WARNING; - $message .= $flashMessage; + $messageDetail .= $flashMessage; + } + if (strpos($flashMessage, 'message-information') !== FALSE) { + $messageDetail .= $flashMessage; } $unsecureUserCount = tx_saltedpasswords_div::getNumberOfBackendUsersWithInsecurePassword(); -- GitLab