diff options
Diffstat (limited to 'odoo/tools/mail.py')
| -rw-r--r-- | odoo/tools/mail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index f9a5cfa67cf..aa2552f8356 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -261,7 +261,7 @@ def html_keep_url(text): link_tags = re.compile(r"""(?<!["'])((ftp|http|https):\/\/(\w+:{0,1}\w*@)?([^\s<"']+)(:[0-9]+)?(\/|\/([^\s<"']))?)(?![^\s<"']*["']|[^\s<"']*</a>)""") for item in re.finditer(link_tags, text): final += text[idx:item.start()] - final += '<a href="%s" target="_blank">%s</a>' % (item.group(0), item.group(0)) + final += '<a href="%s" target="_blank" rel="noreferrer noopener">%s</a>' % (item.group(0), item.group(0)) idx = item.end() final += text[idx:] return final |
