Make WordPress Core

Changeset 6658


Ignore:
Timestamp:
01/25/2008 06:50:52 PM (17 years ago)
Author:
westi
Message:

Allow IPv6 addresses as well. Fixes #4579 props pishmishy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r6640 r6658  
    553553
    554554    if ( ! isset($comment_author_IP) )
    555         $comment_author_IP = preg_replace( '/[^0-9., ]/', '',$_SERVER['REMOTE_ADDR'] );
     555        $comment_author_IP = preg_replace( '/[^0-9a-fA-F:., ]/', '',$_SERVER['REMOTE_ADDR'] );
    556556    if ( ! isset($comment_date) )
    557557        $comment_date = current_time('mysql');
Note: See TracChangeset for help on using the changeset viewer.