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:
commit
fb51066edb
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue