1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Reduced logging

This commit is contained in:
M66B 2022-11-26 12:25:27 +01:00
parent 79c6df7161
commit c5df83bf2f

View file

@ -365,8 +365,13 @@ public class UriHelper {
// go.dhlparcel.nl and others
try {
String path = uri.getPath();
String b = null;
int s = path.lastIndexOf('/');
String b = (s > 0 ? new String(Base64.decode(path.substring(s + 1), Base64.URL_SAFE)) : null);
if (s > 0)
try {
b = new String(Base64.decode(path.substring(s + 1), Base64.URL_SAFE));
} catch (IllegalArgumentException ignored) {
}
Uri result = (b == null ? null : Uri.parse(b));
changed = (result != null && result.getScheme() != null);
url = (result == null ? uri : result);