From 21ddd3a73f249a1964adf9e2b659055f24a098b1 Mon Sep 17 00:00:00 2001 From: taichi Date: Wed, 13 Feb 2013 19:30:11 +0900 Subject: [PATCH] escape svn repository file paths. --- src/applications/diffusion/query/diff/DiffusionSvnDiffQuery.php | 2 +- .../query/filecontent/DiffusionSvnFileContentQuery.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/diffusion/query/diff/DiffusionSvnDiffQuery.php b/src/applications/diffusion/query/diff/DiffusionSvnDiffQuery.php index 083d584907..a974344c67 100644 --- a/src/applications/diffusion/query/diff/DiffusionSvnDiffQuery.php +++ b/src/applications/diffusion/query/diff/DiffusionSvnDiffQuery.php @@ -140,7 +140,7 @@ final class DiffusionSvnDiffQuery extends DiffusionDiffQuery { return $repository->getRemoteCommandFuture( 'cat %s%s@%d', $repository->getRemoteURI(), - $ref, + phutil_escape_uri($ref), $rev); } diff --git a/src/applications/diffusion/query/filecontent/DiffusionSvnFileContentQuery.php b/src/applications/diffusion/query/filecontent/DiffusionSvnFileContentQuery.php index ecd9398971..8cb6c10dc9 100644 --- a/src/applications/diffusion/query/filecontent/DiffusionSvnFileContentQuery.php +++ b/src/applications/diffusion/query/filecontent/DiffusionSvnFileContentQuery.php @@ -16,7 +16,7 @@ final class DiffusionSvnFileContentQuery extends DiffusionFileContentQuery { '%C %s%s@%s', $this->getNeedsBlame() ? 'blame --force' : 'cat', $remote_uri, - $path, + phutil_escape_uri($path), $commit); } catch (CommandException $ex) { $stderr = $ex->getStdErr();