Skip to content

Commit

Permalink
quick fix the windows : char
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaofgod committed Mar 3, 2015
1 parent 1b2cbf4 commit 2e1a2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpfastcache/3.0.0/phpfastcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static function getPath($skip_create_path = false, $config) {
$securityKey = self::$config['securityKey'];
if($securityKey == "auto" || $securityKey == "") {
$securityKey = isset($_SERVER['HTTP_HOST']) ? ltrim(strtolower($_SERVER['HTTP_HOST']),"www.") : "default";
$securityKey = preg_replace("/[^a-zA-Z0-9]+/","",$securityKey);
}
}
if($securityKey != "") {
Expand Down Expand Up @@ -284,4 +285,4 @@ public static function required($class) {
}


}
}

0 comments on commit 2e1a2cc

Please sign in to comment.