From c3b4655e210173b4e88fb70edac9b3cd2b887ec8 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Wed, 29 Sep 2010 12:39:01 +0000
Subject: [PATCH] Sec: If conf.php file is write protected, then all first
 install process is locked.

---
 htdocs/install/etape5.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php
index c71434170d3..065c5b8fa6b 100644
--- a/htdocs/install/etape5.php
+++ b/htdocs/install/etape5.php
@@ -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');
-- 
GitLab