Projects tigase _server server-core Issues #1382
Tigase special characters (#1382)
Open
Unknown opened 5 years ago

Tigase is not escaping special characters when sending stanza to the clients. special characters like [ @ %^&) > ] ..

sending special characters from client A to client B tigase shows that message sent, but it can't be parsed at client side.

Question : handling special characters should be done at server side ? (tigase plugin for example ) ? or it should be handled at client side ?

I've tested it on android client .

Unknown commented 5 years ago

Why it should? XMPP client is required by the XMPP standard to send valid XML to the XMPP server. According to the XML specifications, some characters are not allowed in the XML or need to be escaped (as they have special meaning). Those characters (listed by XML specification) should be escaped by the XMPP client before sending those chars to the XMPP server.

It would be good to mention that not all characters which you mentioned need to be escaped, ie. @, %, ^, [, ], (, ) are valid XML characters not needed to be escaped. Escaping is required for <, >, &, ', " characters.

issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1382
Please wait...
Page is in error, reload to recover