Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2933069
D25686.1737750984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25686.1737750984.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 20:36 (5 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115006
Default Alt Text
D25686.1737750984.diff (1 KB)
Attached To
Mode
D25686: Fix PHP 8.1 exceptions importing ICS file without attendee names
Attached
Detach File
Event Timeline
Log In to Comment