From 1043c52409de2c44e5707177ee9dc1977126ca67 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Wed, 30 May 2007 20:24:45 +0000 Subject: - fixed chars with 8th bit set in urlencode --- tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools.cpp') diff --git a/tools.cpp b/tools.cpp index f6f5f5b..2d38992 100644 --- a/tools.cpp +++ b/tools.cpp @@ -216,7 +216,7 @@ struct urlencoder if ( ch == ' ' ) ostr_ << '+'; - else if ( allowedChars[ size_t( ch ) ] == '_' ) + else if ( static_cast< signed char >( ch ) < 0 || allowedChars[ size_t( ch ) ] == '_' ) ostr_ << '%' << setw( 2 ) << setfill( '0' ) << hex << int( ch ); else ostr_ << ch; -- cgit v1.2.3