Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
849624af
Commit
849624af
authored
Mar 29, 2011
by
vogelor
Browse files
protect the content of the temporary data of the rescue-module
parent
68674286
Changes
1
Show whitespace changes
Inline
Side-by-side
server/mods-available/rescue_core_module.inc.php
View file @
849624af
...
...
@@ -161,8 +161,10 @@ class rescue_core_module {
/*
* We have the newest monitoring data. Save it!
* (and protect it, because there may be sensible data in it)
*/
file_put_contents
(
$dataFilename
,
serialize
(
$data
));
chmod
(
$dataFilename
,
0600
);
/* Thats it */
return
$data
;
...
...
@@ -207,7 +209,12 @@ class rescue_core_module {
*/
private
function
_saveRescueData
()
{
$dataFilename
=
dirname
(
__FILE__
)
.
"/../temp/rescue_module_rescuedata.ser.txt"
;
/*
* We have the newest data. Save it!
* (and protect it, because there may be sensible data in it)
*/
file_put_contents
(
$dataFilename
,
serialize
(
$this
->
_rescueData
));
chmod
(
$dataFilename
,
0600
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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