From f7dab86a06ebd1669d7d2041ff843db33f5d7de6 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Fri, 18 Dec 2015 13:42:42 +0100 Subject: [PATCH] [FIX] tools: colon in a URL When writing an URL in the chatter with a colon inside, the function "html_keep_url" must detect all the URL. opw:660116 --- 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 2e44cfc7395..cd18ebd8fa1 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -484,7 +484,7 @@ def html_keep_url(text): """ Transform the url into clickable link with tag """ idx = 0 final = '' - link_tags = re.compile(r"""(?)""") + link_tags = re.compile(r"""(?)""") for item in re.finditer(link_tags, text): final += text[idx:item.start()] final += '%s' % (item.group(0), item.group(0))