1
0
Fork 0

Merge pull request #5993 from stefangr/fix_bitbucket_dist_install_from_private_repo

Fix dist downloads from bitbucket private repos
pull/6008/head
Jordi Boggiano 2016-12-28 19:10:21 +01:00 committed by GitHub
commit 37bbf1a7c9
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ class RemoteFilesystem
// Path for a public download follows this pattern /{user}/{repo}/downloads/{whatever}
// {@link https://blog.bitbucket.org/2009/04/12/new-feature-downloads/}
$pathParts = explode('/', $path);
if (count($pathParts) >= 4 && $pathParts[2] != 'downloads') {
if (count($pathParts) >= 4 && $pathParts[3] == 'downloads') {
return true;
}