Page MenuHomePhorge

D25454.1734838609.diff
No OneTemporary

D25454.1734838609.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
Sun, Dec 22, 03:36 (19 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025285
Default Alt Text
D25454.1734838609.diff (780 B)

Event Timeline