[erlang-questions] Special Characters problem
Wed Jan 2 15:55:34 CET 2013
Is 'single character >' allowed in xmpp since it is xml ?
Should have been >
On Wednesday, January 2, 2013, Vlad Dumitrescu wrote:
> > wrote:
>> [FromS, ToS, BodyS, Status, unix_timestamp()
> I would guess that the message's body (and maybe even the other strings)
> should be escaped or quoted (by using ~w instead of ~s), probably the
> parser for the resulting string can't handle the spaces and the '>'.
> You should in any case sanitize the input, otherwise you will have
> problems with code injection, imagine a message saying
> "Hello&status=closed&time_create=..." (or worse).
> best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions