1
0
Fork 0

Merge pull request #2351 from Leftbrained/feature/remove-slashes-from-package-archive-filename

Remove slashes from package archive filename
pull/2376/head
Jordi Boggiano 2013-10-21 02:51:22 -07:00
commit a2a70380c1
1 changed files with 3 additions and 1 deletions

View File

@ -83,9 +83,11 @@ class ArchiveManager
$nameParts[] = substr(sha1($package->getSourceReference()), 0, 6);
}
return implode('-', array_filter($nameParts, function ($p) {
$name = implode('-', array_filter($nameParts, function ($p) {
return !empty($p);
}));
return str_replace('/', '-', $name);
}
/**