[java-support] 07/15: Expand encoded character set to match C++.
Scott Cantor
cantor.2 at osu.edu
Mon Apr 18 20:50:03 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch dev/JSPT-111
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=f18fe8993a2ada759245818f8ba5f57140020e44
commit f18fe8993a2ada759245818f8ba5f57140020e44
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu May 20 15:04:29 2021 -0400
Expand encoded character set to match C++.
---
src/main/java/net/shibboleth/utilities/java/support/ddf/DDF.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/ddf/DDF.java b/src/main/java/net/shibboleth/utilities/java/support/ddf/DDF.java
index 5b66a92..c84f6be 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/ddf/DDF.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/ddf/DDF.java
@@ -1379,8 +1379,7 @@ public class DDF implements Iterable<DDF> {
static void encode(@Nonnull final OutputStream os, @Nonnull final byte[] bytes) throws IOException {
for (final byte b : bytes) {
final int i = Byte.toUnsignedInt(b);
- // 0x25 is the percent char itself.
- if (i <= 0x20 || i >= 0x7F || i == 0x25) {
+ if (i < 0x30 || i > 0x7A) {
os.write('%');
os.write(hexchar(i >>> 4));
os.write(hexchar(i & 0x0F));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list