Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ci4 enhancement use writable backup (#3815)
* Backup .env to writable dir For security the base URL directory must not be writable by the web server, so when making a backup of .env it must go to a new 'backup' directory under the writable directory. * Revert "Backup .env to writable dir" This reverts commit e980b88. * Update security_helper.php For security the base URL directory must not be writable by the web server, so when making a backup of .env it must go to a new 'backup' directory under the writable directory. Creation of this directory should be automated by the build script. * Updade security_helper.php CI4: enhancement This code significantly rewritten to use CI4's WRITEPATH variable and to wrap file management in defensive code, as well as other changes. * CI4 Enhancement: Upgrade security_helper.php This version removes surplus comments, removes surplus empty lines and improves responses to fwrite() errors * CI4 Enhancement: Upgrade security_helper.php Correct file permissions and revise some if tests
- Loading branch information