Sec: If conf.php file is write protected, then all first install process is locked.

This commit is contained in:
Laurent Destailleur 2010-09-29 12:39:01 +00:00
parent 7633c94a60
commit c3b4655e21

View File

@ -103,7 +103,7 @@ if ($_POST["action"] == "set")
pHeader($langs->trans("SetupEnd"),"etape5");
// Test if we can run a first install process
if (! is_writable($conffile))
if (! GETPOST("versionfrom") && ! GETPOST("versionto") && ! is_writable($conffile))
{
print $langs->trans("ConfFileIsNotWritable",'htdocs/conf/conf.php');
pFooter(1,$setuplang,'jscheckparam');