From 9a1f80da1ac3511c512cf258cff5fd13b27c95ea Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 31 May 2007 14:42:36 +0000 Subject: - corrected urlescaping of chars > 127 --- tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools.cpp') diff --git a/tools.cpp b/tools.cpp index 2d38992..a1fbaf1 100644 --- a/tools.cpp +++ b/tools.cpp @@ -217,7 +217,7 @@ struct urlencoder if ( ch == ' ' ) ostr_ << '+'; else if ( static_cast< signed char >( ch ) < 0 || allowedChars[ size_t( ch ) ] == '_' ) - ostr_ << '%' << setw( 2 ) << setfill( '0' ) << hex << int( ch ); + ostr_ << '%' << setw( 2 ) << setfill( '0' ) << hex << int( static_cast< unsigned char >( ch ) ); else ostr_ << ch; } -- cgit v1.2.3