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

WordPress Trac noreply at wordpress.org
Fri Oct 23 08:32:16 UTC 2015


#34410: For validation of the $code: status_header
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In version 4.4 beta1, the value of the code has not been validated.
 I think that there is a possibility to issue the status of the invalid
 value in this source code.

 I think that is better to check always the value of $code in
 get_status_header_desc function.

 {{{
 $_description = get_status_header_desc( $code );
 if ( empty( $_description ) ) {
         return;
 }

 if ( ! $description ) {
         $description = $_description;
 }
 }}}

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


More information about the wp-trac mailing list