We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57fdd61 + 4551d9c commit 69ab717Copy full SHA for 69ab717
interface/web/mail/mail_domain_edit.php
@@ -331,6 +331,11 @@ function onSubmit() {
331
$this->dataRecord["domain"] = strtolower($this->dataRecord["domain"]);
332
}
333
334
+ // Extract the dkim public key if not submitted.
335
+ if (!empty($this->dataRecord['dkim_private']) && empty( $this->dataRecord['dkim_public']) && function_exists('openssl_pkey_get_details')) {
336
+ $this->dataRecord['dkim_public'] = openssl_pkey_get_details(openssl_pkey_get_private($this->dataRecord['dkim_private']))['key'];
337
+ }
338
+
339
//* server_id must be > 0
340
if(isset($this->dataRecord["server_id"]) && $this->dataRecord["server_id"] < 1) $app->tform->errorMessage .= $app->lng("server_id_0_error_txt");
341
0 commit comments