[wp-trac] [WordPress Trac] #34410: For validation of the $code: status_header

WordPress Trac noreply at wordpress.org
Wed Nov 18 22:25:14 UTC 2015


#34410: For validation of the $code: status_header
--------------------------+----------------------
 Reporter:  tmatsuur      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by jeremyfelt):

 * status:  new => closed
 * version:  trunk =>
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the report. `get_status_header_desc()` provides a default white
 list of status codes and descriptions unless (it appears) it is completely
 overridden by custom functionality. Anyone overriding this list would need
 to do so in its entirety and should then provide appropriate validation.

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


More information about the wp-trac mailing list