Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move preview capability checks into the specific preview handlers. #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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