Skip to content

Commit

Permalink
fix(filesystem): Prevent android crash on invalid base64 write (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Apr 26, 2022
1 parent a90b5fd commit 1af0bfe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ private void saveFile(PluginCall call, File file, String data) {
ex
);
call.reject("FILE_NOTCREATED");
} catch (IllegalArgumentException ex) {
call.reject("The supplied data is not valid base64 content.");
}
}

Expand Down

0 comments on commit 1af0bfe

Please sign in to comment.