Skip to content
Snippets Groups Projects
Commit 5fb92419 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Allow whitespace and other special characters in generate expressions from arrays

parent e4bd85bf
Branches
Tags
No related merge requests found
......@@ -13,7 +13,7 @@ sub add_config {
add_config($key . '.', $val);
}
elsif (ref($val) eq 'ARRAY') {
$config{'@' . $prefix . $key . '@'} = join ' ', @{$val};
$config{'@' . $prefix . $key . '@'} = join ' ', map {s/'/'\\''/g; "'" . $_ . "'"} @{$val}
}
unless (ref($val)) {
$config{'@' . $prefix . $key . '@'} = $val;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment