Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Broker.php, to force the test of ORGANIZER e-mail address to b… #434

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ITip/Broker.php
Expand Up @@ -847,7 +847,7 @@ protected function parseEventInfo(VCalendar $calendar = null)
$organizer = $vevent->ORGANIZER->getNormalizedValue();
$organizerName = isset($vevent->ORGANIZER['CN']) ? $vevent->ORGANIZER['CN'] : null;
} else {
if ($organizer !== $vevent->ORGANIZER->getNormalizedValue()) {
if (strtolower($organizer) !== strtolower($vevent->ORGANIZER->getNormalizedValue())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logically doesnt make a difference, but I would use strtoupper as we use in the below lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to change to strtoupper, if you would like.

johnkwoods marked this conversation as resolved.
Show resolved Hide resolved
throw new SameOrganizerForAllComponentsException('Every instance of the event must have the same organizer.');
}
}
Expand Down