Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Control Characters killing client connection

$
0
0

Hello everybody,

 

I recently developed a plugin with some custom IQs.

One such IQ accepts a base64 encoded HTML.

 

The plugin now decodes the HTML and runs a regex (to remove HTML tags) and then gets the first 100 chars and the nsaves that result as PlainText into the DB...later on the client can request the info again...and it will get send as plaintext...

 

The problem is that I tested with control chars such as these:

≈♦⇔→•

 

...when the plugin now tries to send this then my clients connection is completely broken.

 

 

It seems related to this -> https://igniterealtime.org/issues/browse/OF-455

 

I would like to know how openfire handles this....I was told to use StringUtils.escapeForXML ..it does help for those chars mentioned above...but now I am running into trouble with these bad boys -> ŷ►‛

 

Is there any way for me to get rid of those chars bevore trying to send my IQ?

 

Thanks in advance


Viewing all articles
Browse latest Browse all 4979

Trending Articles