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

WordPress Trac noreply at wordpress.org
Mon Nov 17 07:19:18 UTC 2014


#10551: wp_die() triggers block when using ModSecurity Core Rules
----------------------------------------------+---------------------
 Reporter:  cstrosser                         |       Owner:  westi
     Type:  defect (bug)                      |      Status:  closed
 Priority:  low                               |   Milestone:  4.1
Component:  Security                          |     Version:  2.7
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  westi-likes has-patch needs-docs  |     Focuses:
----------------------------------------------+---------------------

Comment (by nacin):

 This was mostly joehoyle's leg work and initial patch, props (and thanks)
 joe!

 Replying to [comment:22 joehoyle]:
 > could unknowingly be an int, and do something unexpected

 FWIW, I agree this could be awkward, but this is also precisely how
 die/exit already work, in that they are exit codes when they are ints.

 Replying to [comment:23 johnbillion]:
 > would mean introducing a default error message and we don't want to
 encourage people to avoid providing their own.

 OK, that argument definitely resonates with me. Carry on!

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


More information about the wp-trac mailing list