From e1ff73962126ffa2c6c8349ff7719fd0cc6f60cd Mon Sep 17 00:00:00 2001 From: Jeroen Peelaerts Date: Wed, 28 Oct 2020 22:00:56 +0100 Subject: [PATCH] Increase timeout on migration (#2992) --- application/controllers/Config.php | 4 ++-- application/controllers/Login.php | 2 +- application/views/configs/system_info.php | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/application/controllers/Config.php b/application/controllers/Config.php index 87b1ec22b..74837bbc4 100644 --- a/application/controllers/Config.php +++ b/application/controllers/Config.php @@ -905,7 +905,7 @@ class Config extends Secure_Controller $result = FALSE; // Chmod the file - @chmod($config_path, 0777); + @chmod($config_path, 0770); // Verify file permissions if(is_writable($config_path)) @@ -920,7 +920,7 @@ class Config extends Secure_Controller } // Chmod the file - @chmod($config_path, 0444); + @chmod($config_path, 0440); return $result; } diff --git a/application/controllers/Login.php b/application/controllers/Login.php index 2c8fb8dd4..3d8a27178 100644 --- a/application/controllers/Login.php +++ b/application/controllers/Login.php @@ -45,7 +45,7 @@ class Login extends CI_Controller if (!$this->migration->is_latest()) { - set_time_limit(1200); + set_time_limit(3600); // trigger any required upgrade before starting the application $this->migration->latest(); } diff --git a/application/views/configs/system_info.php b/application/views/configs/system_info.php index fb2debc44..7f555aed8 100644 --- a/application/views/configs/system_info.php +++ b/application/views/configs/system_info.php @@ -125,9 +125,6 @@ if(!((substr(decoct(fileperms($logs)), -4) == 750) && (substr(decoct(fileperms($uploads)), -4) == 750) && (substr(decoct(fileperms($images)), -4) == 750) && ((substr(decoct(fileperms($importcustomers)), -4) == 640) || (substr(decoct(fileperms($importcustomers)), -4) == 660)))) { -// OR substr(decoct(fileperms($uploads)), -4) != 750 - // OR substr(decoct(fileperms($images)), -4) != 750 - // OR substr(decoct(fileperms($importcustomers)), -4) != 660) { echo '
' . $this->lang->line('config_security_issue') . '
' . $this->lang->line('config_perm_risk') . '

'; } else {