Skip to content

Commit 2e1a2cc

Browse files
committed
quick fix the windows : char
1 parent 1b2cbf4 commit 2e1a2cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public static function getPath($skip_create_path = false, $config) {
161161
$securityKey = self::$config['securityKey'];
162162
if($securityKey == "auto" || $securityKey == "") {
163163
$securityKey = isset($_SERVER['HTTP_HOST']) ? ltrim(strtolower($_SERVER['HTTP_HOST']),"www.") : "default";
164+
$securityKey = preg_replace("/[^a-zA-Z0-9]+/","",$securityKey);
164165
}
165166
}
166167
if($securityKey != "") {
@@ -284,4 +285,4 @@ public static function required($class) {
284285
}
285286

286287

287-
}
288+
}

0 commit comments

Comments
 (0)