RE: [reSIProcate] Bug in Data::charEncoded()
I commited your fix - thanks!
-----Original Message-----
From: Ulrich Findeisen [mailto:Ulrich.Findeisen@xxxxxxx]
Sent: Thursday, February 24, 2005 12:52 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Bug in Data::charEncoded()
Hi,
I found that the Data::charEncoded() method in os/Data.cxx is encoding the
't' character as '%74':
Data testData("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
DebugLog(<< testData.charEncoded());
is logged as
"abcdefghijklmnopqrs%74uvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
The reason is that /t instead of \t is used:
if ( !isprint(c) ||
// rfc 3261 reserved + mark + space + tab
strchr(" \";/?:@&=+%$,/t-_.!~*'()", c))
Regards,
Ulrich
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel