From c830ae5eba9688bc9b80e2d4167063c1fb58f304 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Thu, 2 Nov 2023 15:17:27 +0000 Subject: [PATCH] Fixes issue #6599 --- interface/web/mail/ajax_get_json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/mail/ajax_get_json.php b/interface/web/mail/ajax_get_json.php index c40c3bf401..68d935abb7 100644 --- a/interface/web/mail/ajax_get_json.php +++ b/interface/web/mail/ajax_get_json.php @@ -51,7 +51,7 @@ if($type == 'create_dkim' && $domain_id != ''){ unset($rec); $mail_config = $app->getconf->get_server_config($server_id, 'mail'); $dkim_strength = $app->functions->intval($mail_config['dkim_strength']); - if ($dkim_strength=='') $dkim_strength = 2048; + if ($dkim_strength == '' || $dkim_strength == 0 ) $dkim_strength = 2048; $rnd_val = $dkim_strength * 10; $app->system->exec_safe('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null'); -- GitLab