Page MenuHomePhorge

D25150.1734741098.diff
No OneTemporary

D25150.1734741098.diff

diff --git a/src/applications/diffusion/controller/DiffusionController.php b/src/applications/diffusion/controller/DiffusionController.php
--- a/src/applications/diffusion/controller/DiffusionController.php
+++ b/src/applications/diffusion/controller/DiffusionController.php
@@ -97,19 +97,19 @@
AphrontRequest $request) {
$short_name = $request->getURIData('repositoryShortName');
- if (strlen($short_name)) {
+ if (phutil_nonempty_string($short_name)) {
// If the short name ends in ".git", ignore it.
$short_name = preg_replace('/\\.git\z/', '', $short_name);
return $short_name;
}
$identifier = $request->getURIData('repositoryCallsign');
- if (strlen($identifier)) {
+ if (phutil_nonempty_string($identifier)) {
return $identifier;
}
$id = $request->getURIData('repositoryID');
- if (strlen($id)) {
+ if (phutil_nonempty_string($id)) {
return (int)$id;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 00:31 (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021302
Default Alt Text
D25150.1734741098.diff (956 B)

Event Timeline