From: Alexander Ebert Date: Thu, 14 Feb 2013 20:49:37 +0000 (+0100) Subject: Added support for braindead IPv6 notation X-Git-Tag: 2.0.0_Beta_1~478 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77350ee4ea4ce92d7168344f51ad974c4578bf3b;p=GitHub%2FWoltLab%2FWCF.git Added support for braindead IPv6 notation --- diff --git a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php index 6e66505ff1..540c9b04dd 100644 --- a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php @@ -42,7 +42,7 @@ class MemcachedCacheSource implements ICacheSource { $tmp = explode("\n", StringUtil::unifyNewlines(CACHE_SOURCE_MEMCACHED_HOST)); $servers = array(); $defaultWeight = floor(100 / count($tmp)); - $regex = new Regex('^\[([a-z0-9\:]+)\](?::([0-9]{1,5}))?(?::([0-9]{1,3}))?$', Regex::CASE_INSENSITIVE); + $regex = new Regex('^\[([a-z0-9\:\.]+)\](?::([0-9]{1,5}))?(?::([0-9]{1,3}))?$', Regex::CASE_INSENSITIVE); foreach ($tmp as $server) { $server = StringUtil::trim($server);