Skip to content

Commit c830ae5

Browse files
author
Till Brehm
committed
Fixes issue #6599
1 parent 46edad9 commit c830ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/ajax_get_json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
unset($rec);
5252
$mail_config = $app->getconf->get_server_config($server_id, 'mail');
5353
$dkim_strength = $app->functions->intval($mail_config['dkim_strength']);
54-
if ($dkim_strength=='') $dkim_strength = 2048;
54+
if ($dkim_strength == '' || $dkim_strength == 0 ) $dkim_strength = 2048;
5555

5656
$rnd_val = $dkim_strength * 10;
5757
$app->system->exec_safe('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null');

0 commit comments

Comments
 (0)