[wp-trac] [WordPress Trac] #14601: wp_new_comment method doesn't allow passed in values for IP and user-agent

WordPress Trac noreply at wordpress.org
Sat May 4 11:23:16 UTC 2013


#14601: wp_new_comment method doesn't allow passed in values for IP and user-agent
---------------------------------+--------------------
 Reporter:  mrutz                |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  3.6
Component:  Comments             |     Version:  3.0.1
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.2-early  |
---------------------------------+--------------------

Comment (by DrewAPicture):

 [attachment:14601.diff] works as expected for me.

 Replying to [comment:5 ericlewis]:
 > Should we validate this data on the way in?

 I suppose we could use `FILTER_VALIDATE_IP` to validate
 `$_SERVER['REMOTE_ADDR']` on the way in, though I'm not sure if that's
 necessary.

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


More information about the wp-trac mailing list