From: <car...@us...> - 2025-02-19 21:31:56
|
Revision: 11151 http://sourceforge.net/p/phpwiki/code/11151 Author: carstenklapp Date: 2025-02-19 21:31:55 +0000 (Wed, 19 Feb 2025) Log Message: ----------- Don't load any .ini files from config dir, not just ones named starting with config. we have SqlResult.ini in the config dir Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2025-02-19 21:07:01 UTC (rev 11150) +++ trunk/lib/loadsave.php 2025-02-19 21:31:55 UTC (rev 11151) @@ -1608,7 +1608,7 @@ function LoadFile(&$request, $filename, $text = false) { if (preg_match("/config$/", dirname($filename)) // our or other config - and preg_match("/config.*\.ini/", basename($filename)) + and preg_match("/.*\.ini/", basename($filename)) ) { // backups and other versions also trigger_error(sprintf("Refused to load %s", $filename), E_USER_WARNING); return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |