[wp-trac] [WordPress Trac] #11286: Normal User Input Causes Status 500

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 25 10:49:24 UTC 2010


#11286: Normal User Input Causes Status 500
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Comments      |     Version:  2.8.4    
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by solarissmoke):

 Replying to [miqrogroove]:
 > Prefer 400 status

 The HTTP Specification says that 400 is for when "the request could not be
 understood by the server due to malformed syntax". So whilst this might be
 an appropriate response for invalid inputs (e.g. bad email address), I
 don't think it should be used in wp-includes/comment.php for duplicate
 comments and comment flooding. There 403 is more appropriate.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11286#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list