Images without host are not tracking images

This commit is contained in:
M66B 2020-04-08 09:57:29 +02:00
parent b3c3b30a65
commit 9ff327a91d
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ public class HtmlHelper {
if (!TextUtils.isEmpty(src) && isTrackingPixel(img)) {
Uri uri = Uri.parse(src);
String host = uri.getHost();
if (host == null || !hosts.contains(host)) {
if (host != null && !hosts.contains(host)) {
img.attr("src", sb.toString());
img.attr("alt", context.getString(R.string.title_legend_tracking_pixel));
img.attr("height", "24");