diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py index bfd011fc42c..32f3af766f9 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -466,7 +466,7 @@ def html_keep_url(text): """ Transform the url into clickable link with tag """ idx = 0 final = '' - link_tags = re.compile(r'(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?') + link_tags = re.compile(r"""(?%s' % (item.group(0), item.group(0))