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

Conversation

johnkwoods
Copy link
Contributor

…e case-insensitive

Fixes issue where a recurring meeting is created with ORGANIZER as First.Last@domain.com, then individual appointments are saved with ORGANIZER as first.last@domain.com.

…e case-insensitive

Fixes issue where a recurring meeting is created with ORGANIZER as First.Last@domain.com, then individual appointments are saved with ORGANIZER as first.last@domain.com.
@codecov
Copy link

codecov bot commented Oct 29, 2018

Codecov Report

Merging #434 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #434   +/-   ##
=========================================
  Coverage     98.87%   98.87%           
  Complexity     1809     1809           
=========================================
  Files            65       65           
  Lines          5160     5160           
=========================================
  Hits           5102     5102           
  Misses           58       58
Impacted Files Coverage Δ Complexity Δ
lib/ITip/Broker.php 99.31% <100%> (ø) 154 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 898b2e7...21153de. Read the comment docs.

@@ -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.

@staabm
Copy link
Member

staabm commented Oct 29, 2018

Thx for your PR!

Would you mind adding a unit test?

@johnkwoods
Copy link
Contributor Author

Thx for your PR!

Would you mind adding a unit test?

You're welcome.

Unfortunately, I'm a fish-out-of-water when it comes to writing tests... Might be better served with someone who actually knows what they're doing there.

lib/ITip/Broker.php Outdated Show resolved Hide resolved
staabm and others added 2 commits October 29, 2018 21:06
Co-Authored-By: johnkwoods <john.woods@greatplainsmfg.com>
Copy link
Member

@DeepDiver1975 DeepDiver1975 left a comment

Choose a reason for hiding this comment

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

I will add a test

@DeepDiver1975
Copy link
Member

see #435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants