summaryrefslogtreecommitdiff
path: root/tools.cpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-31 14:42:36 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-31 14:42:36 +0000
commit9a1f80da1ac3511c512cf258cff5fd13b27c95ea (patch)
treebb6c142c8a83bd46be58acc821cfd05121df86d9 /tools.cpp
parent8cf9e58d0aa6f6395e3353126ce684f3923b4d23 (diff)
downloadvdr-plugin-live-9a1f80da1ac3511c512cf258cff5fd13b27c95ea.tar.gz
vdr-plugin-live-9a1f80da1ac3511c512cf258cff5fd13b27c95ea.tar.bz2
- corrected urlescaping of chars > 127
Diffstat (limited to 'tools.cpp')
-rw-r--r--tools.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}