[cpp-sp] branch dev/4.0.0 updated: Expand range of encoded characters.

Scott Cantor cantor.2 at osu.edu
Thu May 20 15:12:02 UTC 2021


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch dev/4.0.0
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=775160640f12f1ea451885251484a5bf73cc49df

The following commit(s) were added to refs/heads/dev/4.0.0 by this push:
       new  77516064  Expand range of encoded characters.
77516064 is described below

commit 775160640f12f1ea451885251484a5bf73cc49df
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu May 20 11:11:57 2021 -0400

    Expand range of encoded characters.
---
 shibsp/remoting/impl/ddf.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/shibsp/remoting/impl/ddf.cpp b/shibsp/remoting/impl/ddf.cpp
index 973f4ee4..4ca4d1df 100644
--- a/shibsp/remoting/impl/ddf.cpp
+++ b/shibsp/remoting/impl/ddf.cpp
@@ -839,12 +839,10 @@ static inline char hexchar(unsigned short s)
 ostream& encode(ostream& os, const char* s)
 {
     for (; *s; s++) {
-        if (*s <= 0x20 || *s >= 0x7F) {
+        if (*s < 0x30 || *s > 0x7A) {
             os << '%';
             os << hexchar((unsigned char)*s >> 4);
             os << hexchar((unsigned char)*s & 0x0F);
-        } else if (*s == '%') {
-            os << "%25";
         }
         else {
             os << *s;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list