From 13bb0188772049f798f549a81a3804fc7b2002f5 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 28 Oct 2015 17:24:51 +0100 Subject: [PATCH] [FIX] tools: html_keep_url The urls surrounded with "" or '' don't have to be clickable. opw:652397 --- openerp/tools/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))