Skip to content

Commit bb46640

Browse files
author
Devendra
committed
fix for JS - java decryption for long strings
1 parent b7288a2 commit bb46640

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎java/srcPubnubApi/com/pubnub/api/Base64Encoder.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static String decodeString(String s) {
110110
* if the input is not valid Base64 encoded data.
111111
*/
112112
public static byte[] decode(String s) {
113-
return decode(s.toCharArray());
113+
return decode(s.replace(" ", "").replace("\n", "").toCharArray());
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)