Page MenuHomePhorge

D25454.1737005738.diff
No OneTemporary

D25454.1737005738.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
@@ -345,12 +345,12 @@
// Make some reasonable effort to produce reasonable default directory
// names from repository names.
- if (!strlen($name)) {
+ if (!phutil_nonempty_string($name)) {
$name = $this->getName();
$name = phutil_utf8_strtolower($name);
$name = preg_replace('@[ -/:->]+@', '-', $name);
$name = trim($name, '-');
- if (!strlen($name)) {
+ if (!phutil_nonempty_string($name)) {
$name = $this->getCallsign();
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 05:35 (2 w, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114141
Default Alt Text
D25454.1737005738.diff (780 B)

Event Timeline