[wp-trac] [WordPress Trac] #23416: Form handlers assume $_POST elements will be strings

WordPress Trac noreply at wordpress.org
Thu Feb 7 20:16:37 UTC 2013


#23416: Form handlers assume $_POST elements will be strings
--------------------------+------------------------------
 Reporter:  tabacco       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by scribu):

 The fact that WP doesn't expect an array in `$_POST['author']` isn't a bug
 in itself, since comments can only have a single author. It seems to me
 that the bug lies in whatever code generates `author[]=foo&author[]=bar`.

 This is an old debate, though: how far should we go in preventing notices?

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


More information about the wp-trac mailing list