mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-29 05:04:59 +02:00
✨(frontend) detect text link in html body and warn user before redirect (#744)
Parse sanitized html before rendering to detect links that are just raw text then transform them into anchor. Furthermore, for security purpore, we catch event when a user clicks on a link then display a confirmation modal displaying the real link. Co-authored-by: Valentin Regnault <valentinregnault22@gmail.com>
This commit is contained in:
co-authored by
Valentin Regnault
parent
983df0fe6f
commit
39f2d9ca98
@@ -299,6 +299,14 @@
|
||||
"description": "Whether external images should be proxied",
|
||||
"readOnly": true
|
||||
},
|
||||
"MESSAGE_TRUSTED_LINK_DOMAINS": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Hostnames whose external links skip the redirect confirmation modal (a leading *. wildcard also matches subdomains)",
|
||||
"readOnly": true
|
||||
},
|
||||
"FEATURE_MAILDOMAIN_CREATE": {
|
||||
"type": "boolean",
|
||||
"readOnly": true
|
||||
@@ -398,6 +406,7 @@
|
||||
"MAX_RECIPIENTS_PER_MESSAGE",
|
||||
"MAX_TEMPLATE_IMAGE_SIZE",
|
||||
"IMAGE_PROXY_ENABLED",
|
||||
"MESSAGE_TRUSTED_LINK_DOMAINS",
|
||||
"FEATURE_MAILDOMAIN_CREATE",
|
||||
"FEATURE_MAILDOMAIN_MANAGE_ACCESSES",
|
||||
"FEATURE_THREAD_SPLIT",
|
||||
|
||||
Reference in New Issue
Block a user