mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-24 00:36:28 +00:00
Workaround invalid tracking image width/height
This commit is contained in:
parent
323da90fc4
commit
0934759a77
1 changed files with 5 additions and 2 deletions
|
@ -2425,8 +2425,11 @@ public class HtmlHelper {
|
||||||
if ("cloudmagic-smart-beacon".equals(img.className()))
|
if ("cloudmagic-smart-beacon".equals(img.className()))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
String width = img.attr("width").trim();
|
// Canary Mail
|
||||||
String height = img.attr("height").trim();
|
// <img id="..." alt="" width="0px" src="https://receipts.canarymail.io/track/..._....png" height="0px">
|
||||||
|
|
||||||
|
String width = img.attr("width").replace("px", "").trim();
|
||||||
|
String height = img.attr("height").replace("px", "").trim();
|
||||||
|
|
||||||
if (TextUtils.isEmpty(width) || TextUtils.isEmpty(height))
|
if (TextUtils.isEmpty(width) || TextUtils.isEmpty(height))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue