projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Copy over unsigned char fix.
[shibboleth/cpp-opensaml.git]
/
saml
/
binding
/
impl
/
URLEncoder.cpp
diff --git
a/saml/binding/impl/URLEncoder.cpp
b/saml/binding/impl/URLEncoder.cpp
index
81f0a51
..
92a7858
100644
(file)
--- a/
saml/binding/impl/URLEncoder.cpp
+++ b/
saml/binding/impl/URLEncoder.cpp
@@
-67,8
+67,8
@@
string URLEncoder::encode(const char* s) const
for (; *s; s++) {
if (isBad(*s)) {
ret+='%';
- ret+=hexchar(*s >> 4);
- ret+=hexchar(*s & 0x0F);
+ ret+=hexchar(
(unsigned char)
*s >> 4);
+ ret+=hexchar(
(unsigned char)
*s & 0x0F);
}
else
ret+=*s;