aboutsummaryrefslogtreecommitdiff
path: root/security/shibboleth2-sp/files/patch-shib-target_shib-handlers.cpp
blob: 70aeb166082064440ad12512ab62118c814d87cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

$FreeBSD$

--- shib-target/shib-handlers.cpp.orig
+++ shib-target/shib-handlers.cpp
@@ -544,8 +544,8 @@
     for (; *s; s++) {
         if (strchr(badchars,*s) || *s<=0x20 || *s>=0x7F) {
             ret+='%';
-        ret+=hexchar(*s >> 4);
-        ret+=hexchar(*s & 0x0F);
+        ret+=hexchar((unsigned char)*s >> 4);
+        ret+=hexchar((unsigned char)*s & 0x0F);
         }
         else
             ret+=*s;