Skip to content

Commit 4551d9c

Browse files
author
Till Brehm
committed
Update mail_domain_edit.php to check if openssl PHP functions are available
1 parent a74eb51 commit 4551d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function onSubmit() {
332332
}
333333

334334
// Extract the dkim public key if not submitted.
335-
if (!empty($this->dataRecord['dkim_private']) && empty( $this->dataRecord['dkim_public']) ) {
335+
if (!empty($this->dataRecord['dkim_private']) && empty( $this->dataRecord['dkim_public']) && function_exists('openssl_pkey_get_details')) {
336336
$this->dataRecord['dkim_public'] = openssl_pkey_get_details(openssl_pkey_get_private($this->dataRecord['dkim_private']))['key'];
337337
}
338338

0 commit comments

Comments
 (0)