[wp-trac] [WordPress Trac] #37192: Validate before sanitizing when processing REST Request arguments

WordPress Trac noreply at wordpress.org
Sat Jul 2 23:02:46 UTC 2016


#37192: Validate before sanitizing when processing REST Request arguments
---------------------------------------------+--------------------------
 Reporter:  danielbachhuber                  |       Owner:  rachelbaker
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.6
Component:  REST API                         |     Version:  4.4
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"37943"]:
 {{{
 #!CommitTicketReference repository="" revision="37943"
 REST API: Reverse order of setting sanitization/validation, validating
 prior to sanitizing.

 Fixes mistake in the current behavior, where the sanitization callback ran
 before the validation callback. Now the validation callback will run
 before the sanitization.

 Props schlessera, rachelbaker.
 See #37247.
 Fixes #37192.
 }}}

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


More information about the wp-trac mailing list