Page MenuHomePhorge

D25336.1737332266.diff
No OneTemporary

D25336.1737332266.diff

diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -779,15 +779,15 @@
break;
case 'compare':
$uri = $this->getPathURI("/{$action}/");
- if (strlen($head)) {
+ if (phutil_nonempty_string($head)) {
$query['head'] = $head;
- } else if (strlen($raw_commit)) {
+ } else if (phutil_nonempty_string($raw_commit)) {
$query['commit'] = $raw_commit;
- } else if (strlen($raw_branch)) {
+ } else if (phutil_nonempty_string($raw_branch)) {
$query['head'] = $raw_branch;
}
- if (strlen($against)) {
+ if (phutil_nonempty_string($against)) {
$query['against'] = $against;
}
break;

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 00:17 (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113846
Default Alt Text
D25336.1737332266.diff (949 B)

Event Timeline