summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_string_replacer.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-07-25 22:14:59 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-07-25 22:14:59 +0200
commitcff07b5f76c9b28e8a1f7dfb64767cc43371138a (patch)
tree08b92f61161916fdfc7454a19b1f34e96726f152 /program/lib/Roundcube/rcube_string_replacer.php
parent469ede77cbc147142425609d9b57022462198816 (diff)
Fix parsing of links with ... in URL (#1489192)
Diffstat (limited to 'program/lib/Roundcube/rcube_string_replacer.php')
-rw-r--r--program/lib/Roundcube/rcube_string_replacer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_string_replacer.php b/program/lib/Roundcube/rcube_string_replacer.php
index 0fc90a55a..d1f1f4dbc 100644
--- a/program/lib/Roundcube/rcube_string_replacer.php
+++ b/program/lib/Roundcube/rcube_string_replacer.php
@@ -39,7 +39,7 @@ class rcube_string_replacer
$url1 = '.:;,';
$url2 = 'a-zA-Z0-9%=#$@+?!&\\/_~\\[\\]\\(\\){}\*-';
- $this->link_pattern = "/([\w]+:\/\/|\W[Ww][Ww][Ww]\.|^[Ww][Ww][Ww]\.)($utf_domain([$url1]?[$url2]+)*)/";
+ $this->link_pattern = "/([\w]+:\/\/|\W[Ww][Ww][Ww]\.|^[Ww][Ww][Ww]\.)($utf_domain([$url1]*[$url2]+)*)/";
$this->mailto_pattern = "/("
."[-\w!\#\$%&\'*+~\/^`|{}=]+(?:\.[-\w!\#\$%&\'*+~\/^`|{}=]+)*" // local-part
."@$utf_domain" // domain-part