how to reproduce:
- allow anonymous to access comments
- create a page with a comment
- visit that page as anonymous

the link inviting to login or register to post a comment is escaped

<a href="/d7/user/login?destination=comment/reply/1%2523comment-form">Login</a> or <a href="/d7/user/register?destination=comment/reply/1%2523comment-form">register</a> to post comments
CommentFileSizeAuthor
comment_forbidden_html.patch623 bytesscor

Comments

catch’s picture

Status: Needs review » Needs work

hmm, seems to be escaped with the patch too. Either way could we have a test for it?

R.Muilwijk’s picture

Status: Needs work » Closed (duplicate)

This has already been fixed see current codebase:

    else {
      $links['comment_forbidden']['title'] = theme('comment_post_forbidden', array('node' => $node));
      $links['comment_forbidden']['html'] = TRUE;
    }

Issue: http://drupal.org/node/470866