Skip to content

Commit

Permalink
Merge pull request #1432 from RaspAP/fix/parse-config
Browse files Browse the repository at this point in the history
Fix: prevent duplicate array values in ParseConfig()
  • Loading branch information
billz authored Oct 27, 2023
2 parents 4f3e00f + 6cad860 commit ce001ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ function ParseConfig($arrConfig)
foreach ($arrConfig as $line) {
$line = trim($line);
if ($line == "" || $line[0] == "#") {
$config[$option] = null;
continue;
}

Expand Down

0 comments on commit ce001ae

Please sign in to comment.