Skip to content
Snippets Groups Projects
Commit b05dbd75 authored by Andy Yates's avatar Andy Yates
Browse files

array based attributes can be dodgy too

parent 6d244bff
No related branches found
No related tags found
No related merge requests found
...@@ -173,7 +173,7 @@ sub print_feature { ...@@ -173,7 +173,7 @@ sub print_feature {
# Catch the remaining keys, containing whatever else the Feature provided # Catch the remaining keys, containing whatever else the Feature provided
foreach my $attribute ( keys(%summary)) { foreach my $attribute ( keys(%summary)) {
if (ref $summary{$attribute} eq "ARRAY") { if (ref $summary{$attribute} eq "ARRAY") {
$row .= $attribute."=".join (',',@{$summary{$attribute}}) . ";" $row .= $attribute."=".join (',',map { uri_escape($_,'\t\n\r;=%&,') } @{$summary{$attribute}}) . ";"
} }
else { else {
if ($summary{$attribute}) { $row .= $attribute."=".uri_escape($summary{$attribute},'\t\n\r;=%&,') . ";"; } if ($summary{$attribute}) { $row .= $attribute."=".uri_escape($summary{$attribute},'\t\n\r;=%&,') . ";"; }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment