Page MenuHomePhorge

D25286.1738041349.diff
No OneTemporary

D25286.1738041349.diff

diff --git a/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
--- a/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
+++ b/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
@@ -37,7 +37,7 @@
$repository = $drequest->getRepository();
$path = $request->getValue('path');
- if (!strlen($path) || $path === '/') {
+ if (!phutil_nonempty_string($path) || $path === '/') {
$path = null;
}
diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php
--- a/src/applications/diffusion/controller/DiffusionBrowseController.php
+++ b/src/applications/diffusion/controller/DiffusionBrowseController.php
@@ -22,7 +22,7 @@
// list.
$grep = $request->getStr('grep');
- if (strlen($grep)) {
+ if ($grep) {
return $this->browseSearch();
}

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 28, 05:15 (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1142248
Default Alt Text
D25286.1738041349.diff (1 KB)

Event Timeline