[wp-trac] [WordPress Trac] #44702: Lack of validation for the REST request method

WordPress Trac noreply at wordpress.org
Thu Aug 2 09:55:57 UTC 2018


#44702: Lack of validation for the REST request method
--------------------------+-----------------------------
 Reporter:  andizer       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When registering a REST API endpoint it is possible to set a request
 method. Like GET, PUT, POST, etcetera. This is awesome, however there is
 no validation to verify if the REST method is a valid one
 ([https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods]) .

 I think we should have validation for it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44702>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list