diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-07-25 22:14:59 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-07-25 22:19:12 +0200 |
commit | 8f14c5e1ebaa2512db6df5d9e005a1c7eb326178 (patch) | |
tree | 2f8bc50a7f02799f460c0eade41066ce10565510 /program/lib/Roundcube | |
parent | 7df4db0b4fc4dc9e964fd99e32d440f4ea881d94 (diff) |
Fix parsing of links with ... in URL (#1489192)
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_string_replacer.php | 2 |
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 02d5856cc..acdc4e317 100644 --- a/program/lib/Roundcube/rcube_string_replacer.php +++ b/program/lib/Roundcube/rcube_string_replacer.php @@ -38,7 +38,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 |