Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41083, comment 24


Ignore:
Timestamp:
09/06/2017 02:12:05 AM (7 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41083, comment 24

    initial v1  
    1010        $pattern = '#^(?:\[)?([0-9a-fA-F:]+)(?:\]:([\d]+))?#';
    1111    } elseif( 3 === substr_count( $address, '.' ) ) {                // IPv4
    12         $pattern = '#^(?:\[)?([^:]+)(?::([\d]+))?#';
     12        $pattern = '#^([^:]+)(?::([\d]+))?#';
    1313    } else {                                                         // Not valid
    1414        return false;