Revert 3ff3ed0c56 case-insensitive compares.

My oops.  The comparisons, which are copied from the IMipPlugin shipped with sabre-io/dav,
do not need to be case insensitive because the sender and recipient names are normalized by sabre,
(see calls to getNormalizedValue in voboject/lib/ITip/Broker.php).

Signed-off-by: Brad Rubenstein <brad@wbr.tech>
This commit is contained in:
Brad Rubenstein 2018-11-12 12:59:12 -08:00
parent 6421e30b2c
commit 79d20e4758
1 changed files with 2 additions and 2 deletions

View File

@ -144,11 +144,11 @@ class IMipPlugin extends SabreIMipPlugin {
$summary = $iTipMessage->message->VEVENT->SUMMARY;
if (strcasecmp(parse_url($iTipMessage->sender, PHP_URL_SCHEME), 'mailto') !== 0) {
if (parse_url($iTipMessage->sender, PHP_URL_SCHEME) !== 'mailto') {
return;
}
if (strcasecmp(parse_url($iTipMessage->recipient, PHP_URL_SCHEME), 'mailto') !== 0) {
if (parse_url($iTipMessage->recipient, PHP_URL_SCHEME) !== 'mailto') {
return;
}