You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2022/01/26 15:44:33 UTC

[cxf] branch 3.5.x-fixes updated: Fixed a bug in Base64Utility not passing the urlSafe parameter

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.5.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.5.x-fixes by this push:
     new 93d813e  Fixed a bug in Base64Utility not passing the urlSafe parameter
93d813e is described below

commit 93d813e9bf33bbb8121f0536c01b1fe378f84e54
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Jan 26 15:43:56 2022 +0000

    Fixed a bug in Base64Utility not passing the urlSafe parameter
    
    (cherry picked from commit cc3b622410bb67d93447e703199324a36ffd1596)
---
 core/src/main/java/org/apache/cxf/common/util/Base64Utility.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/cxf/common/util/Base64Utility.java b/core/src/main/java/org/apache/cxf/common/util/Base64Utility.java
index 043eba7..c4f6531 100644
--- a/core/src/main/java/org/apache/cxf/common/util/Base64Utility.java
+++ b/core/src/main/java/org/apache/cxf/common/util/Base64Utility.java
@@ -251,7 +251,7 @@ public final class Base64Utility {
     }
 
     public static String encode(byte[] id, boolean urlSafe) {
-        char[] cd = encodeChunk(id, 0, id.length);
+        char[] cd = encodeChunk(id, 0, id.length, urlSafe);
         return new String(cd, 0, cd.length);
     }