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.
1 parent 5794207 commit a74eb51Copy full SHA for a74eb51
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']) ) {
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