Skip to content

Commit

Permalink
修复文章页评论外部链接跳转不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzishu committed Jan 29, 2025
1 parent df7abe8 commit 84979e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zb_system/function/c_system_route.php
Original file line number Diff line number Diff line change
Expand Up @@ -1594,12 +1594,14 @@ function ViewPost($id = null, $alias = null, $isrewrite = false, $object = array
if ($zbp->autofill_template_htmltags && strpos($zbp->template->templates['comment'], 'id="AjaxComment') === false) {
$comment->Content .= '<label id="AjaxComment' . $comment->ID . '"></label>';
}
$comment->HomePage = ReplaceExternalLink($comment->HomePage);
}
foreach ($comments2 as &$comment) {
$comment->Content = FormatString($comment->Content, '[enter]');
if ($zbp->autofill_template_htmltags && strpos($zbp->template->templates['comment'], 'id="AjaxComment') === false) {
$comment->Content .= '<label id="AjaxComment' . $comment->ID . '"></label>';
}
$comment->HomePage = ReplaceExternalLink($comment->HomePage);
}
}

Expand Down

0 comments on commit 84979e6

Please sign in to comment.