Reduced logging

This commit is contained in:
M66B 2022-11-26 12:25:27 +01:00
parent 79c6df7161
commit c5df83bf2f
1 changed files with 6 additions and 1 deletions

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);