vogelor
2011-03-29 849624af667b7090fcbcf56d7d6a28d5a2c029d6
protect the content of the temporary data of the rescue-module
1 files modified
7 ■■■■■ changed files
server/mods-available/rescue_core_module.inc.php 7 ●●●●● patch | view | raw | blame | history
server/mods-available/rescue_core_module.inc.php
@@ -161,8 +161,10 @@
        
        /*
         * 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 @@
     */
    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);
    }
    /**