[wp-trac] [WordPress Trac] #45933: WSODs protection returns incorrect content type for JSON Requests

WordPress Trac noreply at wordpress.org
Mon Jan 21 21:04:56 UTC 2019


#45933: WSODs protection returns incorrect content type for JSON Requests
----------------------------------+------------------------
 Reporter:  spacedmonkey          |       Owner:  flixos90
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  5.1
Component:  Bootstrap/Load        |     Version:  trunk
 Severity:  normal                |  Resolution:  fixed
 Keywords:  servehappy has-patch  |     Focuses:  multisite
----------------------------------+------------------------

Comment (by spacedmonkey):

 @flixos90 On last thing for `_wp_die_process_input` I would check if
 `$args['response']` is an int. Maybe something like this
 {{{#!php
  if ( empty( $args['response'] ) || !is_int( $args['response'] ) ) {
     $args['response'] = 500;
  }
 }}}

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


More information about the wp-trac mailing list