summaryrefslogtreecommitdiff
path: root/program/include/rcube_string_replacer.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-26 17:41:16 +0000
committeralecpl <alec@alec.pl>2010-10-26 17:41:16 +0000
commitacd9bdd25b62a45420b0aad49de2e31a42053132 (patch)
treedbef8e2d679881736f4faf65e703409aaf60f8f6 /program/include/rcube_string_replacer.php
parent3870bec7ff891677fd848df8d027171acf921420 (diff)
- Fix handling of URLs with tilde (~) character (#1487087)
Diffstat (limited to 'program/include/rcube_string_replacer.php')
-rw-r--r--program/include/rcube_string_replacer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_string_replacer.php b/program/include/rcube_string_replacer.php
index 326bb7f51..a13de6aa3 100644
--- a/program/include/rcube_string_replacer.php
+++ b/program/include/rcube_string_replacer.php
@@ -37,7 +37,7 @@ class rcube_string_replacer
{
// Simplified domain expression for UTF8 characters handling
$utf_domain = '[^?&@"\'\\/()\s\r\t\n]+\\.[a-z]{2,5}';
- $url = '[a-z0-9%=#+?.:&\\/_-]+';
+ $url = '[a-z0-9%=#+?.:&\\/_~-]+';
$this->link_pattern = "/([\w]+:\/\/|\Wwww\.)($utf_domain($url)?)/i";
$this->mailto_pattern = "/("