Fixed to avoid creation of unvalid HTML.
This commit is contained in:
parent
a2ea924448
commit
2e3330a8ad
@ -40,9 +40,8 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
|
|||||||
if ($wordwrap) $text = wordwrap($text, 69, "\n", true);
|
if ($wordwrap) $text = wordwrap($text, 69, "\n", true);
|
||||||
if ($esc) $text = Pluf_esc($text);
|
if ($esc) $text = Pluf_esc($text);
|
||||||
if ($autolink) {
|
if ($autolink) {
|
||||||
$text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]',
|
$text = preg_replace('#([a-z]+://[^\s\(\)]+)#i',
|
||||||
'<a href="\\0" rel="nofollow">\\0</a>',
|
'<a href="\1">\1</a>', $text);
|
||||||
$text);
|
|
||||||
}
|
}
|
||||||
if ($request->rights['hasIssuesAccess']) {
|
if ($request->rights['hasIssuesAccess']) {
|
||||||
$text = preg_replace_callback('#(issues?|bugs?|tickets?)\s+(\d+)((\s+and|\s+or|,)\s+(\d+)){0,}#im',
|
$text = preg_replace_callback('#(issues?|bugs?|tickets?)\s+(\d+)((\s+and|\s+or|,)\s+(\d+)){0,}#im',
|
||||||
|
Loading…
Reference in New Issue
Block a user