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/28 10:20:29 UTC

[cxf] 01/03: 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.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 753ab43bcac7305a1f1a1542dc484ec6609362e1
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)
    (cherry picked from commit 93d813e9bf33bbb8121f0536c01b1fe378f84e54)
    (cherry picked from commit b93b600d14edcebe6d2a27b3455b2231485c5526)
---
 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 ed1a1cc..22bb96f 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);
     }