Skip to content

Commit 9539e9b

Browse files
author
Till Brehm
committed
Merge branch '6599-issue-in-ajax_get_json-php-when-dkim_strength-0' into 'develop'
Resolve "Issue in ajax_get_json.php when $dkim_strength = 0" Closes #6599 See merge request ispconfig/ispconfig3!1823
2 parents 46edad9 + c830ae5 commit 9539e9b

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)