1
0
Fork 0

urlencode() github calls for safety, refs #935

pull/804/merge
Jordi Boggiano 2012-08-24 01:10:13 +02:00
parent 4b18be75d7
commit 997ef763b4
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class GitHubDriver extends VcsDriver
if (!isset($this->infoCache[$identifier])) { if (!isset($this->infoCache[$identifier])) {
try { try {
$resource = 'https://raw.github.com/'.$this->owner.'/'.$this->repository.'/'.$identifier.'/composer.json'; $resource = 'https://raw.github.com/'.$this->owner.'/'.$this->repository.'/'.urlencode($identifier).'/composer.json';
$composer = $this->getContents($resource); $composer = $this->getContents($resource);
} catch (TransportException $e) { } catch (TransportException $e) {
if (404 !== $e->getCode()) { if (404 !== $e->getCode()) {