From a9053abd282a2c574bb03833db29b39ed5cac14b Mon Sep 17 00:00:00 2001 From: fbriere Date: Fri, 17 Feb 2006 03:26:33 +0000 Subject: Have to_xml() already encode its output, and switch to numeric entities --- InternetSecure.pm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'InternetSecure.pm') diff --git a/InternetSecure.pm b/InternetSecure.pm index 0dd4d2a..dec9ee9 100755 --- a/InternetSecure.pm +++ b/InternetSecure.pm @@ -213,10 +213,11 @@ sub to_xml { } xml_out(\%data, - NoAttr => 1, - RootName => 'TranxRequest', - SuppressEmpty => undef, - XMLDecl => '', + NoAttr => 1, + NumericEscape => 2, + RootName => 'TranxRequest', + SuppressEmpty => undef, + XMLDecl => '', ); } @@ -286,9 +287,7 @@ sub submit { undef, make_form( xxxRequestMode => 'X', - xxxRequestData => Encode::encode_utf8( - $self->to_xml - ), + xxxRequestData => $self->to_xml, ) ); -- cgit v1.2.1