Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,575
Issues
1,575
List
Boards
Labels
Milestones
Merge Requests
31
Merge Requests
31
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISPConfig
ISPConfig 3
Commits
793394b5
Commit
793394b5
authored
Aug 02, 2019
by
Marius Burkard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed invalid arguments for exec_safe on dkim
parent
8f135707
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
interface/web/mail/ajax_get_json.php
interface/web/mail/ajax_get_json.php
+3
-2
No files found.
interface/web/mail/ajax_get_json.php
View file @
793394b5
...
...
@@ -54,8 +54,9 @@ if($type == 'create_dkim' && $domain_id != ''){
if
(
$dkim_strength
==
''
)
$dkim_strength
=
2048
;
$rnd_val
=
$dkim_strength
*
10
;
$app
->
system
->
exec_safe
(
'openssl rand -out ../../temp/random-data.bin '
.
$rnd_val
.
' 2> /dev/null'
,
$output
,
$result
);
$app
->
system
->
exec_safe
(
'openssl genrsa -rand ../../temp/random-data.bin '
.
$dkim_strength
.
' 2> /dev/null'
,
$privkey
,
$result
);
$app
->
system
->
exec_safe
(
'openssl rand -out ../../temp/random-data.bin '
.
$rnd_val
.
' 2> /dev/null'
);
$app
->
system
->
exec_safe
(
'openssl genrsa -rand ../../temp/random-data.bin '
.
$dkim_strength
.
' 2> /dev/null'
);
$privkey
=
$app
->
system
->
last_exec_out
();
unlink
(
"../../temp/random-data.bin"
);
$dkim_private
=
''
;
foreach
(
$privkey
as
$values
)
$dkim_private
=
$dkim_private
.
$values
.
"
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment