diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index 93708bbe..4332ff9e 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -78,7 +78,7 @@ function post_message($threadid, $kind, $message, $from = null, $agentid = null) function prepare_html_message($text) { $escaped_text = safe_htmlspecialchars($text); - $text_w_links = preg_replace('/(http|https|ftp):\/\/\S*/', '$0', $escaped_text); + $text_w_links = preg_replace('/(?i)(http|https|ftp):\/\/\S*/', '$0', $escaped_text); $multiline = str_replace("\n", "
", $text_w_links); return $multiline; }