Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | protected function getDiffusionBlobFromRequest(AphrontRequest $request) { | ||||
return $request->getURIData('dblob'); | return $request->getURIData('dblob'); | ||||
} | } | ||||
protected function getRepositoryIdentifierFromRequest( | protected function getRepositoryIdentifierFromRequest( | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
$short_name = $request->getURIData('repositoryShortName'); | $short_name = $request->getURIData('repositoryShortName'); | ||||
if (strlen($short_name)) { | if (strlen($short_name)) { | ||||
// If the short name ends in ".git", ignore it. | |||||
$short_name = preg_replace('/\\.git\z/', '', $short_name); | |||||
return $short_name; | return $short_name; | ||||
} | } | ||||
$identifier = $request->getURIData('repositoryCallsign'); | $identifier = $request->getURIData('repositoryCallsign'); | ||||
if (strlen($identifier)) { | if (strlen($identifier)) { | ||||
return $identifier; | return $identifier; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |