[wp-trac] [WordPress Trac] #10551: wp_die() triggers block when using ModSecurity Core Rules

WordPress Trac noreply at wordpress.org
Tue Oct 7 22:55:17 UTC 2014


#10551: wp_die() triggers block when using ModSecurity Core Rules
-------------------------------------------------+-------------------------
 Reporter:  cstrosser                            |       Owner:  westi
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  low                                  |   Milestone:  Future
Component:  Security                             |  Release
 Severity:  normal                               |     Version:  2.8.3
 Keywords:  needs-patch dev-feedback westi-      |  Resolution:
  likes                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by joehoyle):

 I see what you mean. I think given that the second argument is so seldom
 used, I can get on board with having the second arg be used for the code.

 IMO this is too far: `wp_die( int $response_code = 500 )` I'd be worried
 about it giving unexpected behaviour, e.g.:

 `wp_die( $request->error_message ); // could unknowingly be an int, and do
 something unexpected`.

 +1 for nacin's  patch.

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


More information about the wp-trac mailing list