diff options
| author | 2014-01-01 05:06:36 +0100 | |
|---|---|---|
| committer | 2014-01-01 05:06:36 +0100 | |
| commit | 8beb15460a3c55c37264fdf414e7dcf9ff4e2a62 (patch) | |
| tree | 56cabda8f4243edf55065dd00e378bc6ee086278 /app/Models | |
| parent | bc4116ea77a927683b2abe8a7b4b4fde6452f7d6 (diff) | |
Sauvegardes avec extension .bak.php pour plus de sécurité
Évite le téléchargement
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Configuration.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php index a39d47888..e0ae3bf6b 100644 --- a/app/Models/Configuration.php +++ b/app/Models/Configuration.php @@ -79,7 +79,7 @@ class FreshRSS_Configuration { } public function save() { - @rename($this->filename, $this->filename . '.bak'); + @rename($this->filename, $this->filename . '.bak.php'); if (file_put_contents($this->filename, "<?php\n return " . var_export($this->data, true) . ';', LOCK_EX) === false) { throw new Minz_PermissionDeniedException($this->filename); } |
