[reSIProcate] Bug in Data::charEncoded()
Scott Godin
slgodin at icescape.com
Fri Feb 25 14:37:07 CST 2005
I commited your fix - thanks!
-----Original Message-----
From: Ulrich Findeisen [mailto:Ulrich.Findeisen at gmx.net]
Sent: Thursday, February 24, 2005 12:52 PM
To: resiprocate-devel at list.sipfoundry.org
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 at list.sipfoundry.org
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
More information about the resiprocate-devel
mailing list