1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

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

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