Skip to content

Commit 793394b

Browse files
author
Marius Burkard
committed
- fixed invalid arguments for exec_safe on dkim
1 parent 8f13570 commit 793394b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/web/mail/ajax_get_json.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454
if ($dkim_strength=='') $dkim_strength = 2048;
5555

5656
$rnd_val = $dkim_strength * 10;
57-
$app->system->exec_safe('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null', $output, $result);
58-
$app->system->exec_safe('openssl genrsa -rand ../../temp/random-data.bin '.$dkim_strength.' 2> /dev/null', $privkey, $result);
57+
$app->system->exec_safe('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null');
58+
$app->system->exec_safe('openssl genrsa -rand ../../temp/random-data.bin '.$dkim_strength.' 2> /dev/null');
59+
$privkey = $app->system->last_exec_out();
5960
unlink("../../temp/random-data.bin");
6061
$dkim_private='';
6162
foreach($privkey as $values) $dkim_private=$dkim_private.$values."\n";

0 commit comments

Comments
 (0)