Skip to content

Commit

Permalink
SympaSOAP: Result by setCustom with parameter including non-ASCII cha…
Browse files Browse the repository at this point in the history
…racters is broken (#1407)
  • Loading branch information
ikedas committed Jun 9, 2022
1 parent e1555fc commit 39ddf25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/Sympa/WWW/SOAP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,11 @@ sub setCustom {
#if(! defined $list->{'admin'}{'custom_attribute'}{$key} ) {
# return SOAP::Data->name('result')->type('boolean')->value(0);
#}

# Workaround for possible bug in SOAP::Lite.
Encode::_utf8_off($key);
Encode::_utf8_off($value);

if ($value eq '') {
undef $newcustom{$key};
} else {
Expand Down

0 comments on commit 39ddf25

Please sign in to comment.