diff --git a/src/IDF/Template/IssueComment.php b/src/IDF/Template/IssueComment.php index d814799..2bfe3e3 100644 --- a/src/IDF/Template/IssueComment.php +++ b/src/IDF/Template/IssueComment.php @@ -40,9 +40,8 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag if ($wordwrap) $text = wordwrap($text, 69, "\n", true); if ($esc) $text = Pluf_esc($text); if ($autolink) { - $text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]', - '\\0', - $text); + $text = preg_replace('#([a-z]+://[^\s\(\)]+)#i', + '\1', $text); } if ($request->rights['hasIssuesAccess']) { $text = preg_replace_callback('#(issues?|bugs?|tickets?)\s+(\d+)((\s+and|\s+or|,)\s+(\d+)){0,}#im',