Ticket #4579: comment.php.diff
| File comment.php.diff, 940 bytes (added by ruckus, 5 years ago) |
|---|
-
comment.php
339 339 extract($commentdata, EXTR_SKIP); 340 340 341 341 if ( ! isset($comment_author_IP) ) 342 $comment_author_IP = preg_replace( '/[^0-9., ]/', '',$_SERVER['REMOTE_ADDR'] );342 $comment_author_IP = $_SERVER['REMOTE_ADDR']; 343 343 if ( ! isset($comment_date) ) 344 344 $comment_date = current_time('mysql'); 345 345 if ( ! isset($comment_date_gmt) ) … … 394 394 $commentdata['comment_post_ID'] = (int) $commentdata['comment_post_ID']; 395 395 $commentdata['user_ID'] = (int) $commentdata['user_ID']; 396 396 397 $commentdata['comment_author_IP'] = preg_replace( '/[^0-9., ]/', '',$_SERVER['REMOTE_ADDR'] );397 $commentdata['comment_author_IP'] = $_SERVER['REMOTE_ADDR']; 398 398 $commentdata['comment_agent'] = $_SERVER['HTTP_USER_AGENT']; 399 399 400 400 $commentdata['comment_date'] = current_time('mysql');
