-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for better handling of incoming vCard4 (Fixes: #411)
- Loading branch information
1 parent
34f7341
commit be84b24
Showing
17 changed files
with
143 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ FN:Max Mustermann | |
EMAIL:[email protected] | ||
PRODID:-//Apple Inc.//iCloud Web Address Book 2018B71//EN | ||
REV:2020-10-03T10:30:20Z | ||
PHOTO;ENCODING=b;VALUE=binary: | ||
PHOTO;ENCODING=b;VALUE=binary;TYPE=JPEG: | ||
/9j/4AAQSkZJRgABAQEASABIAAD/4RrgRXhpZgAATU0AKgAAAAgACQEPAAIAAAAGAAAAegEQAAI | ||
AAAAKAAAAgAEaAAUAAAABAAAAigEbAAUAAAABAAAAkgEoAAMAAAABAAIAAAExAAIAAAALAAAAmg | ||
EyAAIAAAAUAAAApgITAAMAAAABAAEAAIdpAAQAAAABAAAAugAAA/5BcHBsZQBpUGhvbmUgNnMAA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ FN:Max Mustermann | |
EMAIL;TYPE=internet:[email protected] | ||
PRODID:-//Apple Inc.//iCloud Web Address Book 2018B71//EN | ||
REV:2020-10-03T10:30:20Z | ||
PHOTO;ENCODING=b;VALUE=binary: | ||
PHOTO;ENCODING=b;VALUE=binary;TYPE=PNG: | ||
iVBORw0KGgoAAAANSUhEUgAAALUAAAC1CAIAAACWMSn+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAA | ||
gAElEQVR4nGS8WW8sS5ImZpu7R0QuJJPkIc+5W+0109XV3dMttTB6EiAJ/TjST5UAQdACvUyjAU | ||
HSTC/q9VbV3c/OLTNjc3cz00PwsA5G8UAkMzwiyTBzs+/7zCzxlxenjoaIrLYSOm+6XWhPsfmkO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ FN:Max Mustermann | |
EMAIL;TYPE=internet:[email protected] | ||
PRODID:-//Apple Inc.//iCloud Web Address Book 2018B71//EN | ||
REV:2020-10-03T10:30:20Z | ||
PHOTO;ENCODING=b;VALUE=binary: | ||
PHOTO;ENCODING=b;VALUE=binary;TYPE=PNG: | ||
iVBORw0KGgoAAAANSUhEUgAAALUAAAC1CAIAAACWMSn+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAA | ||
gAElEQVR4nGS8WW8sS5ImZpu7R0QuJJPkIc+5W+0109XV3dMttTB6EiAJ/TjST5UAQdACvUyjAU | ||
HSTC/q9VbV3c/OLTNjc3cz00PwsA5G8UAkMzwiyTBzs+/7zCzxlxenjoaIrLYSOm+6XWhPsfmkO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"cuid": "5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2", | ||
"name": "vCard 4 Contact with image", | ||
"kind": "individual", | ||
"email:other": [ | ||
"[email protected]" | ||
], | ||
"photo": "@../srv/pixel.jpg" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
BEGIN:VCARD | ||
VERSION:4.0 | ||
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V83.6//EN-GB | ||
UID:5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2 | ||
FN:vCard 4 Contact with image | ||
EMAIL:[email protected] | ||
REV:20221222T213003Z | ||
PHOTO:data:image/JPEG\;base64\,/9j/4AAQSkZJRgABAQAAYABgAAD/2wBDAAgGBgcGBQgHB | ||
wcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ | ||
wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAAAv/EABQQAQAAAAAAAAAAAAAAAAAAAAD | ||
/2gAIAQEAAD8AL//Z | ||
END:VCARD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ FN:Max Mustermann | |
EMAIL:[email protected] | ||
PRODID:-//Apple Inc.//iCloud Web Address Book 2018B71//EN | ||
REV:2020-10-03T10:30:20Z | ||
PHOTO;ENCODING=b;VALUE=binary: | ||
PHOTO;ENCODING=b;VALUE=binary;TYPE=PNG: | ||
iVBORw0KGgoAAAANSUhEUgAAALUAAAC1CAIAAACWMSn+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAA | ||
gAElEQVR4nGS8WW8sS5ImZpu7R0QuJJPkIc+5W+0109XV3dMttTB6EiAJ/TjST5UAQdACvUyjAU | ||
HSTC/q9VbV3c/OLTNjc3cz00PwsA5G8UAkMzwiyTBzs+/7zCzxlxenjoaIrLYSOm+6XWhPsfmkO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/Unit/data/vcardUpdate/VCard4-DataUriPhotoUnchanged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"cuid": "5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2", | ||
"name": "vCard 4 Contact with image", | ||
"kind": "individual", | ||
"email:other": [ | ||
"[email protected]" | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/Unit/data/vcardUpdate/VCard4-DataUriPhotoUnchanged.vcf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BEGIN:VCARD | ||
VERSION:4.0 | ||
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V83.6//EN-GB | ||
UID:5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2 | ||
FN:vCard 4 Contact with image | ||
N:;;;; | ||
EMAIL:[email protected] | ||
REV:20221222T213003Z | ||
PHOTO:data:image/JPEG\;base64\,/9j/4AAQSkZJRgABAQAAYABgAAD/2wBDAAgGBgcGBQgHB | ||
wcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ | ||
wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAAAv/EABQQAQAAAAAAAAAAAAAAAAAAAAD | ||
/2gAIAQEAAD8AL//Z | ||
END:VCARD |
13 changes: 13 additions & 0 deletions
13
tests/Unit/data/vcardUpdate/VCard4-DataUriPhotoUnchanged.vcf.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BEGIN:VCARD | ||
VERSION:4.0 | ||
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V83.6//EN-GB | ||
UID:5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2 | ||
FN:vCard 4 Contact with image | ||
N:;;;; | ||
EMAIL:[email protected] | ||
REV:20221222T213003Z | ||
PHOTO:data:image/JPEG\;base64\,/9j/4AAQSkZJRgABAQAAYABgAAD/2wBDAAgGBgcGBQgHB | ||
wcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ | ||
wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAAAv/EABQQAQAAAAAAAAAAAAAAAAAAAAD | ||
/2gAIAQEAAD8AL//Z | ||
END:VCARD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"cuid": "5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2", | ||
"name": "vCard 4 Contact with image", | ||
"kind": "individual", | ||
"email:other": [ | ||
"[email protected]" | ||
], | ||
"photo": "@../srv/pixel.jpg" | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/Unit/data/vcardUpdate/VCard4-DataUriPhotoUpdated.vcf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BEGIN:VCARD | ||
VERSION:4.0 | ||
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V83.6//EN-GB | ||
UID:5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2 | ||
FN:vCard 4 Contact with image | ||
N:;;;; | ||
EMAIL:[email protected] | ||
REV:20221222T213003Z | ||
PHOTO:data:image/JPEG\;base64\,/9j/4AAQSkZJRgABAQAAYABgAAD/2wBDAAgGBgcGBQgHB | ||
wcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ | ||
wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAAAv/EABQQAQAAAAAAAAAAAAAAAAAAAAD | ||
/2gAIAQEAAD8AL//Z | ||
END:VCARD |
13 changes: 13 additions & 0 deletions
13
tests/Unit/data/vcardUpdate/VCard4-DataUriPhotoUpdated.vcf.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BEGIN:VCARD | ||
VERSION:4.0 | ||
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V83.6//EN-GB | ||
UID:5cdac90f-cb4c-4c1c-ad66-fe8591bdf3a2 | ||
FN:vCard 4 Contact with image | ||
N:;;;; | ||
EMAIL:[email protected] | ||
REV:20221222T213003Z | ||
PHOTO:data:image/jpeg;base64\,/9j/4AAQSkZJRgABAQAAYABgAAD/2wBDAAgGBgcGBQgHB | ||
wcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ | ||
wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAAAv/EABQQAQAAAAAAAAAAAAAAAAAAAAD | ||
/2gAIAQEAAD8AL//Z | ||
END:VCARD |