Page MenuHomePhorge

D25686.1737784263.diff
No OneTemporary

D25686.1737784263.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
Sat, Jan 25, 05:51 (5 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115006
Default Alt Text
D25686.1737784263.diff (1 KB)

Event Timeline