Skip to content

Commit 752ab3d

Browse files
author
Florian Schaal
committed
check always $_POST
1 parent 73d6104 commit 752ab3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_domain_dkim_create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ 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();
131132
switch ($_POST['action']) {
132133
case 'create': /* create DKIM Private-key */
133134
$rnd_val = $dkim_strength * 10;
134135
exec('openssl rand -out ../../temp/random-data.bin '.$rnd_val.' 2> /dev/null', $output, $result);
135136
exec('openssl genrsa -rand ../../temp/random-data.bin '.$dkim_strength.' 2> /dev/null', $privkey, $result);
136137
unlink('../../temp/random-data.bin');
137-
$_POST=getRealPOST();
138138
foreach($privkey as $values) $private_key=$private_key.$values."\n";
139139
//* check the selector for updated dkim-settings only
140140
if ( isset($_POST['dkim_public']) && !empty($_POST['dkim_public']) ) $selector = new_selector($_POST['dkim_selector'], $_POST['domain']);

0 commit comments

Comments
 (0)