summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_string_replacer.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-22 08:47:45 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-22 08:47:45 +0000
commit284113b872df8c1d7d0b6da99b33d8b3160f2254 (patch)
treeabe471b0a544c67a6152f63fe3f42c7ca3c86598 /roundcubemail/program/include/rcube_string_replacer.php
parent48c5e37546f20ada47924526b3ea011b6d2d5e8e (diff)
- Fixed bug in handling link with '!' character in it (#1488195)
git-svn-id: https://svn.roundcube.net/trunk@5461 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_string_replacer.php')
-rw-r--r--roundcubemail/program/include/rcube_string_replacer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_string_replacer.php b/roundcubemail/program/include/rcube_string_replacer.php
index 8997ca342..1cd1ef9fe 100644
--- a/roundcubemail/program/include/rcube_string_replacer.php
+++ b/roundcubemail/program/include/rcube_string_replacer.php
@@ -39,7 +39,7 @@ class rcube_string_replacer
// Support unicode/punycode in top-level domain part
$utf_domain = '[^?&@"\'\\/()\s\r\t\n]+\\.([^\\x00-\\x2f\\x3b-\\x40\\x5b-\\x60\\x7b-\\x7f]{2,}|xn--[a-z0-9]{2,})';
$url1 = '.:;,';
- $url2 = 'a-z0-9%=#@+?&\\/_~\\[\\]{}-';
+ $url2 = 'a-z0-9%=#@+?!&\\/_~\\[\\]{}-';
$this->link_pattern = "/([\w]+:\/\/|\Wwww\.)($utf_domain([$url1]?[$url2]+)*)/i";
$this->mailto_pattern = "/("