Page MenuHomePhorge

D25150.1738083334.diff
No OneTemporary

D25150.1738083334.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
Tue, Jan 28, 16:55 (2 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115436
Default Alt Text
D25150.1738083334.diff (956 B)

Event Timeline