Merge branch 'fix/3104-fix-PII-leak' into 'develop'

Block loading of remote favicons when loading a message

See merge request android/mail/proton-mail-android!1289
This commit is contained in:
Marino Meneghel 2023-09-29 15:06:33 +00:00
commit fb51066edb
1 changed files with 0 additions and 3 deletions

View File

@ -252,9 +252,6 @@ open class PmWebViewClient(
if (uri.scheme.equals("cid", ignoreCase = true) || uri.scheme.equals("data", ignoreCase = true)) {
return super.shouldInterceptRequest(view, url)
}
if (url.lowercase(Locale.getDefault()).contains("/favicon.ico")) {
return super.shouldInterceptRequest(view, url)
}
blockedImages++
return WebResourceResponse("text/plain", "utf-8", ByteArrayInputStream(ByteArray(0)))
}