From 981ecc1696da1104ae8152415240a2d04379381e Mon Sep 17 00:00:00 2001 From: anthony restaino Date: Mon, 5 Jun 2017 20:00:55 -0400 Subject: [PATCH] Fixing problem with unsafe URIs --- .../main/java/acr/browser/lightning/favicon/FaviconUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/acr/browser/lightning/favicon/FaviconUtils.java b/app/src/main/java/acr/browser/lightning/favicon/FaviconUtils.java index a25e691..a32420b 100644 --- a/app/src/main/java/acr/browser/lightning/favicon/FaviconUtils.java +++ b/app/src/main/java/acr/browser/lightning/favicon/FaviconUtils.java @@ -17,7 +17,7 @@ class FaviconUtils { Uri uri = Uri.parse(url); - if (uri.getHost() == null || uri.getScheme() == null) { + if (TextUtils.isEmpty(uri.getScheme()) || TextUtils.isEmpty(uri.getHost())) { return null; }