diff --git a/admin/inc/class.admin_config.inc.php b/admin/inc/class.admin_config.inc.php index 2b45fe4bee..f72a54d030 100644 --- a/admin/inc/class.admin_config.inc.php +++ b/admin/inc/class.admin_config.inc.php @@ -263,12 +263,20 @@ class admin_config 'newsettings' => array(), ); - // for security reasons we do not send all config to client-side, but only ones mentioned in templates - $matches = null; - preg_match_all('/id="newsettings\[([^]]+)\]/', file_get_contents($path), $matches, PREG_PATTERN_ORDER); - foreach($matches[1] as $name) + // $app.config is looping eg.