Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(enroll): fix payload base 64 encode
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <[email protected]>
  • Loading branch information
rafaelje authored and Hector Rondon committed Jun 12, 2018
1 parent f7329af commit 2605ff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/org/flyve/mdm/agent/utils/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public static String base64encode(String text) {
byte[] data = text.getBytes("UTF-8");
rtext = Base64.encodeToString(data, Base64.NO_WRAP | Base64.URL_SAFE);
rtext = rtext.replaceAll("-", "+");
rtext = rtext.replaceAll(" ", "+");
} catch (UnsupportedEncodingException e) {
FlyveLog.e(e.getMessage());
}
Expand Down

0 comments on commit 2605ff9

Please sign in to comment.