Skip to content

Commit

Permalink
fix shiro exp #54
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1t3p1g committed Nov 30, 2023
1 parent bbf297b commit 85a5bd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public Object doAction(String action, String exception, Object data) throws IOEx
}else if("read".equals(action) && data instanceof String){
return FileHelper.fileGetContent((String) data);
}else if("base64".equals(action) && data instanceof byte[]){
return Strings.encodeToString((byte[]) data);
return Strings.encodeToBase64String((byte[]) data);
}else if("gzip".equals(action) && data instanceof byte[]){
ByteArrayOutputStream outBuf = new ByteArrayOutputStream();
GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outBuf);
Expand Down

0 comments on commit 85a5bd3

Please sign in to comment.