mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-27 05:28:38 -04:00
Sauvegardes avec extension .bak.php pour plus de sécurité
Évite le téléchargement
This commit is contained in:
1 parent
bc4116ea77
commit
8beb15460a
3 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user