1
0
Fork 0

Cache path never ends with '/'

pull/2428/head
Dimitrios Kanellopoulos 2013-11-16 19:34:06 +01:00
parent 95a9ac880b
commit 81820beefc
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ EOT
$localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
// Check if current dir is writable and if not try the cache dir from settings
$tmpDir = is_writable(dirname($localFilename))? dirname($localFilename) . '/' : $cacheDir;
$tempFilename = $tmpDir . basename($localFilename, '.phar').'-temp.phar';
$tmpDir = is_writable(dirname($localFilename))? dirname($localFilename) : $cacheDir;
$tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp.phar';
// check for permissions in local filesystem before start connection process
if (!is_writable($tmpDir)) {