projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61e6b54
)
https://issues.shibboleth.net/jira/browse/CPPXT-38
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 24 Aug 2009 19:35:43 +0000
(19:35 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 24 Aug 2009 19:35:43 +0000
(19:35 +0000)
xmltooling/util/URLEncoder.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/util/URLEncoder.cpp
b/xmltooling/util/URLEncoder.cpp
index
d646251
..
55a8187
100644
(file)
--- a/
xmltooling/util/URLEncoder.cpp
+++ b/
xmltooling/util/URLEncoder.cpp
@@
-43,7
+43,7
@@
void URLEncoder::decode(char* s) const
for(x=0,y=0;s[y];++x,++y)
{
- if((s[x] = s[y]) == '%' &&
s[y+1] && s[y+2]
)
+ if((s[x] = s[y]) == '%' &&
isxdigit(s[y+1]) && isxdigit(s[y+2])
)
{
s[x] = x2c(&s[y+1]);
y+=2;