composer/composer — Issue #172: Seems there's some slash missing in SvnDriver.php
Author: alphalemon
Created: 2011-12-24 09:21:41+00:00
State: open

Hello,
first of all thanks for this great application! I played with composer, packagist and svn and I got a problem with methos getComposerInformation() both when I try to upload a package from a svn repository and whe I try to get it with composer.phar.

It seems that there are some missing slashes when this command is executed:

exec(sprintf('svn cat --non-interactive %s', escapeshellarg($this->baseUrl.$identifier.'composer.json'.$rev)), $output);

I changed it as follows:

exec(sprintf('svn cat --non-interactive %s', escapeshellarg($this->baseUrl."/".$identifier.'/composer.json'.$rev)), $output);

and my package was submitted. Am I missing something or it is a bug?

Probably the follow could have the same problem:

exec(sprintf('svn info %s', escapeshellarg($this->baseUrl.$identifier.$rev)), $output);

Thank you again