Skip to content

Problems parsing a string in nusoap_server #137

@oscar-castaneda

Description

@oscar-castaneda

In version 0.9.17:

$server->register("validate_login", //method
    array("user" => "xsd:string"),
    array("return" => "xsd:string"),
    "urn:AuthenticateUserString",
    "urn:AuthenticateUserString#validate_login");

if the string in "user" contains a vertical bar, | , the rest of the string gets dropped.
For instance, a string like "myhair|black", as soon as it comes into a method, gets dropped to "myhair".
If instead of "myhair|black" I use "myhair&black", the string gets into my method without any changes, the way I want it.

I can see that in function addOperation, the second argument is $in, which contains the input.

Of course, the easiest solution would be to change the way "user" comes in the server. However, that input is coming from an mobil phone app and it would be cumbersome to change the code in the app, android and iOS. So, I was wondering if there is an easier way to fix it in this end.

Anybody has some ideas on where this issue could be found?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage: Next

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions