Skip to content

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Nov 8, 2022

This moves the capability checks for comment previewing away from edit_posts. These were added in #205.

Example: Attempt to preview a comment on make.wordpress.org/meta/ from a user who is not a member of the site (or cannot edit posts).

This requires a security review of some form, I believe it should be safe, but needs to be reviewed to ensure that the same comment_text-sanitization that occurs on comment post is applied here during preview.
For example, posting <script>alert(1)</script> should not work in the preview.

See #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant