Skip to content

Commit 348f765

Browse files
committed
Merge pull request #287 from Geolim4/final
Fixed #286
2 parents 2c495ca + fe300b9 commit 348f765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpFastCache/Core/phpFastCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function getPath($skip_create_path = false, $config)
182182
$securityKey = self::$config[ 'securityKey' ];
183183
if ($securityKey == 'auto' || $securityKey == '') {
184184
$securityKey = isset($_SERVER[ 'HTTP_HOST' ]) ? preg_replace('/^www./',
185-
'', strtolower($_SERVER[ 'HTTP_HOST' ])) : "default";
185+
'', strtolower(str_replace(':', '_', $_SERVER[ 'HTTP_HOST' ]))) : "default";
186186
}
187187
}
188188
if ($securityKey != '') {

0 commit comments

Comments
 (0)