commit bc9e305badce7460021a965f425571677d41fd7b parent c405305992b22d98dc4d649a732121dd82a82182 Author: Jan Dankert <develop@jandankert.de> Date: Sat, 16 Nov 2019 00:46:46 +0100 Fix: YAML-Parser should not load files. Diffstat:
modules/configuration/ConfigurationLoader.class.php | | | 2 | +- |
modules/util/YAML.class.php | | | 1 | - |
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/configuration/ConfigurationLoader.class.php b/modules/configuration/ConfigurationLoader.class.php @@ -66,7 +66,7 @@ class ConfigurationLoader return array(); } - $customConfig = YAML::parse( $configFile ); + $customConfig = YAML::parse( file_get_contents($configFile) ); // Resolve variables in all custom configuration values array_walk_recursive( $customConfig, function(&$value,$key) diff --git a/modules/util/YAML.class.php b/modules/util/YAML.class.php @@ -1,6 +1,5 @@ <?php -use Spyc; /** * YAML Wrapper for the Spyc implementation of a YAML-Parser.