[Fusionforge-commits] r10035 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Jun 16 17:09:11 CEST 2010


Author: lolando
Date: 2010-06-16 17:09:11 +0200 (Wed, 16 Jun 2010)
New Revision: 10035

Modified:
   trunk/gforge/common/include/config.php
Log:
Silently ignore unreadable config files: those containing secrets aren't always meant to be read by the Apache user

Modified: trunk/gforge/common/include/config.php
===================================================================
--- trunk/gforge/common/include/config.php	2010-06-16 09:31:31 UTC (rev 10034)
+++ trunk/gforge/common/include/config.php	2010-06-16 15:09:11 UTC (rev 10035)
@@ -86,7 +86,7 @@
 	}
 
 	function read_config_file ($file) {
-		if (file_exists($file)) {
+		if (file_exists($file) && is_readable($file)) {
 			$sections = parse_ini_file ($file, true) ;
 			if (is_array($sections)) {
 				foreach ($sections as $section => $options) {




More information about the Fusionforge-commits mailing list