1
0
Fork 0

Avoid double slashes if HOME ends with a slash, fixes #1227

pull/1231/head
Jordi Boggiano 2012-10-18 09:40:35 +02:00
parent 8949d43dca
commit 247d1aca41
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Factory
if (defined('PHP_WINDOWS_VERSION_MAJOR')) { if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
$home = getenv('APPDATA') . '/Composer'; $home = getenv('APPDATA') . '/Composer';
} else { } else {
$home = getenv('HOME') . '/.composer'; $home = rtrim(getenv('HOME'), '/') . '/.composer';
} }
} }