WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Contact Form 7] IPv6 support for [wpcf7.remote_ip] (1 post)

  1. wobin
    Member
    Posted 5 years ago #

    --- wp-contact-form-7.php.orig  2009-02-23 11:19:54.723324382 +0100
    +++ wp-contact-form-7.php       2009-02-23 11:18:56.778748882 +0100
    @@ -307,7 +307,7 @@
    
                 // Special [wpcf7.remote_ip] tag
                 if ('wpcf7.remote_ip' == $matches[1])
    -                return preg_replace('/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR']);
    +                return preg_replace('/[^0-9:., ]/', '', $_SERVER['REMOTE_ADDR']);
    
                 return $matches[0];
             }

    http://wordpress.org/extend/plugins/contact-form-7/

Topic Closed

This topic has been closed to new replies.

About this Topic