Merge remote-tracking branch 'remotes/origin/fix/helpscout#31945_stripslashes_mail_from'

This commit is contained in:
nikitasinelnikov
2019-07-16 14:20:19 +03:00
+1 -1
View File
@@ -406,7 +406,7 @@ if ( ! class_exists( 'um\core\Mail' ) ) {
}
$this->attachments = null;
$this->headers = 'From: '. UM()->options()->get('mail_from') .' <'. UM()->options()->get('mail_from_addr') .'>' . "\r\n";
$this->headers = 'From: '. stripslashes( UM()->options()->get('mail_from') ) .' <'. UM()->options()->get('mail_from_addr') .'>' . "\r\n";
/**
* UM hook