mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Always remove empty images
This commit is contained in:
@@ -955,6 +955,11 @@ public class HtmlHelper {
|
||||
String src = img.attr("src");
|
||||
String tracking = img.attr("x-tracking");
|
||||
|
||||
if (TextUtils.isEmpty(src)) {
|
||||
img.remove();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (alt.length() > MAX_ALT)
|
||||
alt = alt.substring(0, MAX_ALT) + "…";
|
||||
|
||||
@@ -1547,11 +1552,8 @@ public class HtmlHelper {
|
||||
img.removeAttr("x-tracking");
|
||||
|
||||
String src = img.attr("src");
|
||||
if (TextUtils.isEmpty(src)) {
|
||||
if (!full)
|
||||
img.remove();
|
||||
if (TextUtils.isEmpty(src))
|
||||
continue;
|
||||
}
|
||||
|
||||
Uri uri = Uri.parse(src);
|
||||
String host = uri.getHost();
|
||||
|
||||
Reference in New Issue
Block a user