mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Merge branch 'master' into filter-packages
* master: Add tests for edge cases of packages providing names which exist as real packages Add another test verifying that a package may provide an incompatible version of sth that actually exists Fix provider coexistence test, needs another requirement to install both Fix test filename to end with .test extension so it gets run Update config section to note required scope for GitLab tokens Fix pre/post-package-install/update/uninstall events receiving a partial list of operations, fixes #9079 Also remove credentials from cache dirs in git/svn drivers, fixes #7439, refs #9155 AuthHelper: Allow fall-through GitLab-specific HTTP headers for auth Sanitize repo URLs to mask HTTP auth passwords from cache directory Util/Zip: fix strpos args order
This commit is contained in:
commit
1385412748
13 changed files with 226 additions and 16 deletions
|
@ -129,7 +129,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
|
||||
$this->baseUrl = rtrim(preg_replace('{(?:/[^/\\\\]+\.json)?(?:[?#].*)?$}', '', $this->url), '/');
|
||||
$this->io = $io;
|
||||
$this->cache = new Cache($io, $config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->url), 'a-z0-9.$~');
|
||||
$this->cache = new Cache($io, $config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', Url::sanitize($this->url)), 'a-z0-9.$~');
|
||||
$this->cache->setReadOnly($config->get('cache-read-only'));
|
||||
$this->versionParser = new VersionParser();
|
||||
$this->loader = new ArrayLoader($this->versionParser);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue