Page MenuHomePhorge

D25686.1726851228.diff
No OneTemporary

D25686.1726851228.diff

diff --git a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
--- a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
+++ b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
@@ -235,14 +235,14 @@
// We avoid disclosing email addresses to be consistent with the rest
// of the product.
$name = $attendee->getName();
- if (preg_match('/@/', $name)) {
+ if (phutil_nonempty_string($name) && preg_match('/@/', $name)) {
$name = new PhutilEmailAddress($name);
$name = $name->getDisplayName();
}
// If we don't have a name or the name still looks like it's an
// email address, give them a dummy placeholder name.
- if (!strlen($name) || preg_match('/@/', $name)) {
+ if (!phutil_nonempty_string($name) || preg_match('/@/', $name)) {
$name = pht('Private User %d', $private_index);
$private_index++;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 20, 16:53 (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
893296
Default Alt Text
D25686.1726851228.diff (1 KB)

Event Timeline