From 27668a565d19507f69c2b9bc7fc8d34cb37defeb Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 14 Apr 2013 17:45:33 +0200 Subject: [PATCH] Fixed an issue with a too-inclusive regex for URLs in the webclient. Resolves Issue 322. --- src/utils/text2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/text2html.py b/src/utils/text2html.py index ca60a77e66..9425222a2d 100644 --- a/src/utils/text2html.py +++ b/src/utils/text2html.py @@ -113,7 +113,7 @@ class TextToHTMLparser(object): def convert_urls(self, text): "Replace urls (http://...) by valid HTML" - regexp = r"((ftp|www|http)(\W+\S+[^).,:;?\]\}(\) \r\n$]+))" + regexp = r"((ftp|www|http)(\W+\S+[^).,:;?\]\}(\) \r\n$\"\']+))" # -> added target to output prevent the web browser from attempting to # change pages (and losing our webclient session). return re.sub(regexp, r'\1', text)