mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 22:40:55 +01:00
escape svn repository file paths.
This commit is contained in:
parent
5a9e834658
commit
21ddd3a73f
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ final class DiffusionSvnDiffQuery extends DiffusionDiffQuery {
|
||||||
return $repository->getRemoteCommandFuture(
|
return $repository->getRemoteCommandFuture(
|
||||||
'cat %s%s@%d',
|
'cat %s%s@%d',
|
||||||
$repository->getRemoteURI(),
|
$repository->getRemoteURI(),
|
||||||
$ref,
|
phutil_escape_uri($ref),
|
||||||
$rev);
|
$rev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ final class DiffusionSvnFileContentQuery extends DiffusionFileContentQuery {
|
||||||
'%C %s%s@%s',
|
'%C %s%s@%s',
|
||||||
$this->getNeedsBlame() ? 'blame --force' : 'cat',
|
$this->getNeedsBlame() ? 'blame --force' : 'cat',
|
||||||
$remote_uri,
|
$remote_uri,
|
||||||
$path,
|
phutil_escape_uri($path),
|
||||||
$commit);
|
$commit);
|
||||||
} catch (CommandException $ex) {
|
} catch (CommandException $ex) {
|
||||||
$stderr = $ex->getStdErr();
|
$stderr = $ex->getStdErr();
|
||||||
|
|
Loading…
Reference in a new issue