diff options
| author | 2014-01-01 05:06:36 +0100 | |
|---|---|---|
| committer | 2014-01-01 05:06:36 +0100 | |
| commit | 8beb15460a3c55c37264fdf414e7dcf9ff4e2a62 (patch) | |
| tree | 56cabda8f4243edf55065dd00e378bc6ee086278 /lib | |
| parent | bc4116ea77a927683b2abe8a7b4b4fde6452f7d6 (diff) | |
Sauvegardes avec extension .bak.php pour plus de sécurité
Évite le téléchargement
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Configuration.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Configuration.php b/lib/Minz/Configuration.php index fc94d9731..2c30661ed 100644 --- a/lib/Minz/Configuration.php +++ b/lib/Minz/Configuration.php @@ -156,7 +156,7 @@ class Minz_Configuration { ), 'db' => self::$db, ); - @rename(DATA_PATH . self::CONF_PATH_NAME, DATA_PATH . self::CONF_PATH_NAME . '.bak'); + @rename(DATA_PATH . self::CONF_PATH_NAME, DATA_PATH . self::CONF_PATH_NAME . '.bak.php'); $result = file_put_contents(DATA_PATH . self::CONF_PATH_NAME, "<?php\n return " . var_export($ini_array, true) . ';'); if (function_exists('opcache_invalidate')) { opcache_invalidate(DATA_PATH . self::CONF_PATH_NAME); //Clear PHP 5.5+ cache for include |
