Skip to content

Commit

Permalink
Merge pull request #576 from phil-davis/prepare-4.4.2
Browse files Browse the repository at this point in the history
Release 4.4.2
  • Loading branch information
phil-davis authored Jun 24, 2022
2 parents db542a5 + 025833e commit b8a44ea
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
ChangeLog
=========

4.4.2 (2022-06-24)
------------------

* #565: lowercase mailto:-addresses in getNormalizedValue() (@pk1234)
* #568: Add NICKNAME fallback for VCards without FNs (@Evengard)
* #573: Component/select: Before uppercasing $child->group, make sure it isn't null (@algernon)
* #575: Fix encoding detection on PHP 8.1 (@come-nc)

4.4.1 (2021-12-07)
------------------

Expand Down
4 changes: 2 additions & 2 deletions lib/Component/VCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ public function validate($options = 0)
} elseif (isset($this->ORG)) {
$this->FN = (string) $this->ORG;
$repaired = true;

// Otherwise, the NICKNAME property may work
} elseif (isset($this->NICKNAME)) {
$this->FN = (string) $this->NICKNAME;
$repaired = true;

// Otherwise, the EMAIL property may work
} elseif (isset($this->EMAIL)) {
$this->FN = (string) $this->EMAIL;
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/ICalendar/CalAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getNormalizedValue()
}
list($schema, $everythingElse) = explode(':', $input, 2);
$schema = strtolower($schema);
if($schema === "mailto") {
if ('mailto' === $schema) {
$everythingElse = strtolower($everythingElse);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class Version
/**
* Full version number.
*/
const VERSION = '4.4.1';
const VERSION = '4.4.2';
}
2 changes: 1 addition & 1 deletion tests/VObject/Component/VCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function validateData()
];
// No FN, NICKNAME fallback
$tests[] = [
"BEGIN:VCARD\r\nVERSION:4.0\r\nUID:foo\r\NICKNAME:JohnDoe\r\nEND:VCARD\r\n",
"BEGIN:VCARD\r\nVERSION:4.0\r\nUID:foo\r\nNICKNAME:JohnDoe\r\nEND:VCARD\r\n",
[
'The FN property must appear in the VCARD component exactly 1 time',
],
Expand Down

0 comments on commit b8a44ea

Please sign in to comment.