Skip to content
Snippets Groups Projects
Commit 3a7669bd authored by Christopher Smith's avatar Christopher Smith
Browse files

Ensure single value negation is not affected by white space

differences
parent f266a919
No related branches found
No related tags found
No related merge requests found
......@@ -365,12 +365,12 @@ function conf_decodeString($str) {
function array_merge_with_removal($current, $new) {
foreach ($new as $val) {
if (substr($val,0,1) == '!') {
$idx = array_search(substr($val,1),$current);
$idx = array_search(trim(substr($val,1)),$current);
if ($idx !== false) {
unset($current[$idx]);
}
} else {
$current[] = $val;
$current[] = trim($val);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment