[wp-trac] [WordPress Trac] #38477: Missing validation while posting comment via REST API

WordPress Trac noreply at wordpress.org
Thu Nov 3 01:11:32 UTC 2016


#38477: Missing validation while posting comment via REST API
-------------------------------------------------+-------------------------
 Reporter:  mangeshp                             |       Owner:
     Type:  defect (bug)                         |  rachelbaker
 Priority:  normal                               |      Status:  closed
Component:  REST API                             |   Milestone:  4.7
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch has-unit-tests dev-        |  Resolution:  fixed
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"39101"]:
 {{{
 #!CommitTicketReference repository="" revision="39101"
 REST API: Return an error when the length of a comment field is too long.

 Introduces `wp_check_comment_data_max_lengths()` which allows both the
 REST API comments endpoints and `wp_handle_comment_submission()` to check
 the length of the comment content, author name, author url, and author
 email fields against their respective database columns.

 Props rachelbaker, mangeshp, salcode, pento.
 Fixes #38477.
 }}}

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


More information about the wp-trac mailing list