#58 XML element text not properly encoded

closed-rejected
6
2008-04-17
2004-11-17
No

When a datatype does not match any of the regular
expressions a generic serialization function is used to
serialize the data. Since the form of the data is not
know, it may contain various characters that require
escaping. This is definitely true of the anyURI support
as & characters need to be properly encoded.

I have attached a patch to fix the issue by simply
calling SOAP::Utils::encode_data on any of the methods
that are generated through AUTOLOAD.

Discussion

  • Martin Kutter

    Martin Kutter - 2007-10-04
    • priority: 5 --> 6
     
  • Martin Kutter

    Martin Kutter - 2008-04-17

    Logged In: YES
    user_id=884175
    Originator: NO

    Hi Michael,

    ...years later. The behaviour you suggest might lead to double escaping. As the user is free to provide additional serialization functions (which is documented in the pod), I'd rather suggest this way.

    Thanks for reporting,

    Martin

     
  • Martin Kutter

    Martin Kutter - 2008-04-17
    • assigned_to: byrnereese --> kutterma
    • status: open --> closed-rejected
     

Log in to post a comment.