This commit is contained in:
Laurent Destailleur 2010-02-11 08:05:35 +00:00
parent 82b4befd95
commit 13f83a965e

View File

@ -208,7 +208,8 @@ if ($_POST["action"] == "set")
// Save old conf file on disk
if (file_exists("$conffile"))
{
// We must ignore errors as an existing old file may alreday exists and not be replacable
// We must ignore errors as an existing old file may already exists and not be replacable or
// the installer (like for ubuntu) may not have permission to create another file than conf.php.
// Also no other process must be able to read file or we expose the new file so content with password.
@dol_copy($conffile, $conffile.'.old', '0400');
}