Page MenuHomePhorge

D25454.1726893588.diff
No OneTemporary

D25454.1726893588.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
Sat, Sep 21, 04:39 (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
893671
Default Alt Text
D25454.1726893588.diff (780 B)

Event Timeline