1
0
Fork 0

Remove slashes from package archive filename

pull/2351/head
Chris Testroet 2013-10-19 22:00:40 -07:00
parent f5df1d6a9b
commit 2a8eb9df34
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);
}
/**