Skip to content

Commit 7c2e3ea

Browse files
author
Florian Schaal
committed
use getRealPOST(); after case
1 parent 26a9140 commit 7c2e3ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/mail/mail_domain_dkim_create.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ function new_selector ($old_selector, $domain) {
128128
$dkim_strength = $app->functions->intval( $app->getconf->get_server_config($mail_server_id, 'mail')['dkim_strength'] );
129129
if ( empty($dkim_strength) ) $dkim_strength = 1024;
130130

131-
$_POST=getRealPOST();
132131
switch ($_POST['action']) {
133132
case 'create': /* create DKIM Private-key */
133+
$_POST=getRealPOST();
134134
$rnd_val = $dkim_strength * 10;
135135
exec('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null', $output, $result);
136136
exec('openssl genrsa -rand ../../temp/random-data.bin '.$dkim_strength.' 2> /dev/null', $privkey, $result);
@@ -141,6 +141,7 @@ function new_selector ($old_selector, $domain) {
141141
break;
142142

143143
case 'show': /* show the DNS-Record onLoad */
144+
$_POST=getRealPOST();
144145
$private_key=$_POST['dkim_private'];
145146
break;
146147
}

0 commit comments

Comments
 (0)