On Sun May 13 2007, Dmitry Nezhevenko wrote:
> Hi. Looks like there is bug with handling some special characters in
> resources. I just use basic gloox features - PresenceHandler,
> MessageHandler.
>
> So s->from().resource() in PresenceHandler (s - incomming stanza) returns
> incorrect value for resources that contains some reserved characters in
> XML, like ', &:
>
> for resource="&&" i got &&
Hi,
Does the attached patchlet fix this?
cheers,
Jakob
Index: stanza.cpp
===================================================================
--- stanza.cpp (revision 2307)
+++ stanza.cpp (working copy)
@@ -30,7 +30,7 @@
}
Stanza::Stanza( const Tag *tag )
- : Tag( tag->name(), tag->cdata(), false ), m_presence( PresenceUnknown ),
+ : Tag( tag->name(), tag->cdata(), true ), m_presence( PresenceUnknown ),
m_stanzaError( StanzaErrorUndefined ), m_stanzaErrorType(
StanzaErrorTypeUndefined ),
m_stanzaErrorAppCondition( 0 ), m_xmllang( "default" )
{
Attachment:
pgpugINeUEBzN.pgp
Description: PGP signature