Skip to content

Commit

Permalink
Merge pull request #13770 from eileenmcnaughton/mcrypt
Browse files Browse the repository at this point in the history
Remove mcrypt system status check
  • Loading branch information
colemanw authored Mar 6, 2019
2 parents 417aef1 + 6b78f5d commit aa6c2a8
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,35 +120,6 @@ public function checkPhpMysqli() {
return $messages;
}

/**
* @return array
*/
public function checkPhpEcrypt() {
$messages = array();
$mailingBackend = Civi::settings()->get('mailing_backend');
if (!is_array($mailingBackend)
|| !isset($mailingBackend['outBound_option'])
|| $mailingBackend['outBound_option'] != CRM_Mailing_Config::OUTBOUND_OPTION_SMTP
|| !CRM_Utils_Array::value('smtpAuth', $mailingBackend)
) {
return $messages;
}

$test_pass = 'iAmARandomString';
$encrypted_test_pass = CRM_Utils_Crypt::encrypt($test_pass);
if ($encrypted_test_pass == base64_encode($test_pass)) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__,
ts('Your PHP does not include the mcrypt encryption functions. Your SMTP password will not be stored encrypted, and if you have recently upgraded from a PHP that stored it with encryption, it will not be decrypted correctly.'
),
ts('PHP Missing Extension "mcrypt"'),
\Psr\Log\LogLevel::WARNING,
'fa-server'
);
}
return $messages;
}

/**
* Check that the MySQL time settings match the PHP time settings.
*
Expand Down

0 comments on commit aa6c2a8

Please sign in to comment.