[java-support] branch dev/JSPT-111 updated: Expand encoded character set to match C++.
Scott Cantor
cantor.2 at osu.edu
Thu May 20 19:04:31 UTC 2021
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=7690044a8e93ea8c2dbe128309e52ff887eb294a
The following commit(s) were added to refs/heads/dev/JSPT-111 by this push:
new 7690044 Expand encoded character set to match C++.
7690044 is described below
commit 7690044a8e93ea8c2dbe128309e52ff887eb294a
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