Compare commits
No commits in common. "900c2733e529ca746eef7e3ca065dc507e7cd00f" and "c327ba6e048c983f08fa5ceee966f4517f264946" have entirely different histories.
900c2733e5
...
c327ba6e04
|
@ -21,10 +21,6 @@ final class MDMailerHelper {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function pgp_encrypt(string $to, string $msg):string {
|
public static function pgp_encrypt(string $to, string $msg):string {
|
||||||
// Skip encryption if PGP_ENC_KEY is null
|
|
||||||
if (MD_CONF_EMAIL::PGP_ENC_KEY === null) {
|
|
||||||
return $msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
$gpg = new gnupg();
|
$gpg = new gnupg();
|
||||||
$gpg->seterrormode(GNUPG_ERROR_EXCEPTION);
|
$gpg->seterrormode(GNUPG_ERROR_EXCEPTION);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user