[cpp-sp] 05/06: Expand range of encoded characters.
Scott Cantor
cantor.2 at osu.edu
Fri Nov 1 13:04:18 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=175bca9e123b04157eb73d68e3485f1df238666e
commit 175bca9e123b04157eb73d68e3485f1df238666e
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