projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a447b7
)
fix multi-level data structures via XMLRPC API, RT#38254, RT#75279
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 23 May 2017 15:00:17 +0000
(08:00 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 23 May 2017 15:00:17 +0000
(08:00 -0700)
FS/FS/ClientAPI_XMLRPC.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI_XMLRPC.pm
b/FS/FS/ClientAPI_XMLRPC.pm
index
a82a82f
..
3f5d888
100644
(file)
--- a/
FS/FS/ClientAPI_XMLRPC.pm
+++ b/
FS/FS/ClientAPI_XMLRPC.pm
@@
-75,8
+75,10
@@
sub AUTOLOAD {
#FS::ClientAPI->dispatch($autoload->{$call}, @_);
my %hash = @_;
- #XXX doesn't handle multi-level data structs
- $hash{$_} = decode(utf8=>$hash{$_}) foreach keys %hash;
+ #XXX doesn't deep-fix multi-level data structs, but at least doesn't mangle
+ # them anymore
+ $hash{$_} = decode(utf8=>$hash{$_})
+ foreach grep !ref($hash{$_}), keys %hash;
my $return = FS::ClientAPI->dispatch($autoload->{$call}, \%hash );