Differential D8516 Diff 20210 src/applications/diffusion/ssh/DiffusionSSHSubversionServeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionSSHSubversionServeWorkflow.php
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | private function makeInternalURI($uri_string) { | ||||
$repository = $this->loadRepository($path); | $repository = $this->loadRepository($path); | ||||
$path = preg_replace( | $path = preg_replace( | ||||
'(^/diffusion/[A-Z]+)', | '(^/diffusion/[A-Z]+)', | ||||
rtrim($repository->getLocalPath(), '/'), | rtrim($repository->getLocalPath(), '/'), | ||||
$path); | $path); | ||||
if (preg_match('(^/diffusion/[A-Z]+/$)', $path)) { | if (preg_match('(^/diffusion/[A-Z]+/\z)', $path)) { | ||||
$path = rtrim($path, '/'); | $path = rtrim($path, '/'); | ||||
} | } | ||||
$uri->setPath($path); | $uri->setPath($path); | ||||
// If this is happening during the handshake, these are the base URIs for | // If this is happening during the handshake, these are the base URIs for | ||||
// the request. | // the request. | ||||
if ($this->externalBaseURI === null) { | if ($this->externalBaseURI === null) { | ||||
Show All 20 Lines |