Merge pull request #1878 from anton-piliugin/patch-1

Fix hide_x_mailer_header config option behaviour
This commit is contained in:
RainLoop Team 2019-07-02 00:24:30 +03:00 committed by GitHub
commit 08da3030b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5892,6 +5892,8 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
if (!$this->Config()->Get('security', 'hide_x_mailer_header', false)) if (!$this->Config()->Get('security', 'hide_x_mailer_header', false))
{ {
$oMessage->SetXMailer('RainLoop/'.APP_VERSION); $oMessage->SetXMailer('RainLoop/'.APP_VERSION);
} else {
$oMessage->DoesNotAddDefaultXMailer();
} }
$oFromIdentity = $this->GetIdentityByID($oAccount, $sIdentityID); $oFromIdentity = $this->GetIdentityByID($oAccount, $sIdentityID);