From f3c6442a93eebec70537a60050ffee83a32c867b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Oct 2017 14:44:50 +0200 Subject: [PATCH] Code comment --- htdocs/install/inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php index 47ff430ea18..a5671743aca 100644 --- a/htdocs/install/inc.php +++ b/htdocs/install/inc.php @@ -169,8 +169,8 @@ if (! empty($dolibarr_main_document_root_alt)) } -// Security check -if (preg_match('/install.lock/i',$_SERVER["SCRIPT_FILENAME"])) +// Security check (old method, when directory is renamed /install.lock) +if (preg_match('/install\.lock/i',$_SERVER["SCRIPT_FILENAME"])) { print 'Install pages have been disabled for security reason (directory renamed with .lock suffix).'; if (! empty($dolibarr_main_url_root))