Skip to content

Commit 284938c

Browse files
authored
Fixed #294 (#295)
* Fixed typo * Fixed #294
1 parent 80545f1 commit 284938c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phpFastCache/Core/phpFastCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static function getAutoClass($config)
156156
*/
157157
public static function getPath($skip_create_path = false, $config)
158158
{
159-
$tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
159+
$tmp_dir = rtrim(ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(), '\\/') . DIRECTORY_SEPARATOR . 'phpfastcache';
160160

161161
if (!isset($config[ 'path' ]) || $config[ 'path' ] == '') {
162162
if (self::isPHPModule()) {
@@ -191,7 +191,7 @@ public static function getPath($skip_create_path = false, $config)
191191

192192
$securityKey = self::cleanFileName($securityKey);
193193

194-
$full_path = rtrim($path,'/') . '/' . $securityKey;
194+
$full_path = rtrim($path, '\\/') . DIRECTORY_SEPARATOR . $securityKey;
195195
$full_pathx = md5($full_path);
196196

197197

0 commit comments

Comments
 (0)