X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FMemcachedClient.php;h=79c51872c4a773155f7bffeb1115e25e332e0884;hb=0bc431e7ecd810549eaccf340d8f4caaf85c3f17;hp=f0a912890409586aa8a5e94fb6f79be57d14b088;hpb=12d9ce2a2f9ddec1a2f5ead8ebff0b2282bdac31;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/MemcachedClient.php b/includes/objectcache/MemcachedClient.php index f0a9128904..79c51872c4 100644 --- a/includes/objectcache/MemcachedClient.php +++ b/includes/objectcache/MemcachedClient.php @@ -729,7 +729,7 @@ class MWMemcached { * @access private */ function _connect_sock( &$sock, $host ) { - list( $ip, $port ) = explode( ':', $host ); + list( $ip, $port ) = preg_split('/:(?=\d)/' , $host ); $sock = false; $timeout = $this->_connect_timeout; $errno = $errstr = null;