[wp-trac] [WordPress Trac] #61827: wp_check_comment_disallowed_list() can't be used to match unprocessed HTML

WordPress Trac noreply at wordpress.org
Mon Oct 21 23:06:10 UTC 2024


#61827: wp_check_comment_disallowed_list() can't be used to match unprocessed HTML
--------------------------------------+-----------------------------
 Reporter:  cfinke                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  Comments                  |     Version:  6.6.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59267" 59267]:
 {{{
 #!CommitTicketReference repository="" revision="59267"
 Comments: Validate new comments before and after comment data is filtered.

 This ensures that a Disallowed Comment Keys match will consistently send
 the comment to the Trash, by checking both the original unmodified comment
 data and the final filtered comment data.

 If the first check has already resulted in a `trash` or `spam` status, the
 second check is skipped as redundant.

 Follow-up to [2894], [3851], [48121], [48575].

 Props cfinke, kbrownkd, thompsonsj, mi5t4n, devspace, chaion07,
 engahmeds3ed, SergeyBiryukov.
 Fixes #61827.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61827#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list