[wp-trac] [WordPress Trac] #52932: Rest Api enum validation does not work correctly WordPress 5.7

WordPress Trac noreply at wordpress.org
Sun Mar 28 15:17:09 UTC 2021


#52932: Rest Api enum validation does not work correctly WordPress 5.7
---------------------------+-----------------------
 Reporter:  stefanjoebstl  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.7.1
Component:  REST API       |     Version:  5.7
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  rest-api
---------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 Yep, definitely. To clarify what changed, previously a strict comparison
 was also used, but the incoming value wasn't sanitized before checking
 that the enum value matched.

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


More information about the wp-trac mailing list