Merge pull request #1432 from RaspAP/fix/parse-config

Fix: prevent duplicate array values in ParseConfig()
This commit is contained in:
Bill Zimmerman 2023-10-27 13:39:07 +02:00 committed by GitHub
commit ce001aeffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -445,6 +445,7 @@ function ParseConfig($arrConfig)
foreach ($arrConfig as $line) {
$line = trim($line);
if ($line == "" || $line[0] == "#") {
$config[$option] = null;
continue;
}