Skip to content
Snippets Groups Projects
Commit c830ae5e authored by Till Brehm's avatar Till Brehm
Browse files

Fixes issue #6599

parent 46edad9c
No related branches found
No related tags found
1 merge request!1823Resolve "Issue in ajax_get_json.php when $dkim_strength = 0"
Pipeline #13973 passed
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment