diff options
author | alecpl <alec@alec.pl> | 2011-06-27 09:30:01 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-06-27 09:30:01 +0000 |
commit | 96e24fab880754858dfe9d3864d400102209918f (patch) | |
tree | a87eba8960a3784590ee7fd2e68d20be3a5abea8 /program | |
parent | 71228297e0e1d0f4271b244913e0fd609c31e90f (diff) |
- Fix parsing URLs containing commas (#1487970)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_string_replacer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_string_replacer.php b/program/include/rcube_string_replacer.php index 3c09326b2..5ce986fcb 100644 --- a/program/include/rcube_string_replacer.php +++ b/program/include/rcube_string_replacer.php @@ -38,7 +38,7 @@ class rcube_string_replacer // Simplified domain expression for UTF8 characters handling // Support unicode/punycode in top-level domain part $utf_domain = '[^?&@"\'\\/()\s\r\t\n]+\\.([^\\x00-\\x40\\x5b-\\x60\\x7b-\\x7f]{2,}|xn--[a-z0-9]{2,})'; - $url1 = '.:;'; + $url1 = '.:;,'; $url2 = 'a-z0-9%=#@+?&\\/_~\\[\\]-'; $this->link_pattern = "/([\w]+:\/\/|\Wwww\.)($utf_domain([$url1]?[$url2]+)*)/i"; |