Skip to content

Commit 4d24526

Browse files
authored
Strip non-ip-characters
1 parent f9ec707 commit 4d24526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/ms-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ function wpmu_log_new_registrations( $blog_id, $user_id ) {
21042104
$wpdb->registration_log,
21052105
array(
21062106
'email' => $user->user_email,
2107-
'IP' => preg_replace( '/[^a-f0-9:., ]/', '', wp_unslash( $_SERVER['REMOTE_ADDR'] ) ),
2107+
'IP' => preg_replace( '/[^a-f0-9:.]/', '', wp_unslash( $_SERVER['REMOTE_ADDR'] ) ),
21082108
'blog_id' => $blog_id,
21092109
'date_registered' => current_time( 'mysql' ),
21102110
)

0 commit comments

Comments
 (0)