Skip to content

Commit

Permalink
Merge pull request #7 from kbentlage/development-version-1.1.1
Browse files Browse the repository at this point in the history
Protect redis configuration files.
  • Loading branch information
kbentlage authored Jun 5, 2018
2 parents 692e71d + f9f6c49 commit ffbee6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php/Controllers/RedisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ private function _createInstanceConfig($port, $password)
// save config file
if (file_put_contents($this->_config['redis']['configDir'] . '/' . $port . '.conf', $configContent))
{
chmod($this->_config['redis']['configDir'] . '/' . $port . '.conf',0600);
return TRUE;
}
}
Expand Down

0 comments on commit ffbee6b

Please sign in to comment.