forked from kewisch/ical.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse._parsedParameters: do not use helpers.unescapedIndexOf()
iCalendar and vCard parameters do not use \ as escape character in the property parameter values, hence cn="\"X" is not a quote X, but invalid. The proper escape character is ^ per RFC 6868. This change replaces helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to kewisch#536 ES6-ready
- Loading branch information
1 parent
82445c8
commit e43cf1c
Showing
3 changed files
with
1 addition
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ ATTENDEE;ROLE="REQ-PARTICIPANT;foo";DELEGATED-FROM="mailto:[email protected]";PAR | |
TSTAT=ACCEPTED;RSVP=TRUE:mailto:[email protected] | ||
ATTENDEE;CN=X\:mailto:[email protected] | ||
ATTENDEE;CN="Y\":mailto:[email protected] | ||
ATTENDEE;CN="Z\;":mailto:[email protected] | ||
X-FOO;PARAM1=VAL1:FOO;BAR | ||
X-FOO2;PARAM1=VAL1;PARAM2=VAL2:FOO;BAR | ||
X-BAR;PARAM1="VAL1:FOO":BAZ;BAR | ||
|
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 |
---|---|---|
|
@@ -93,14 +93,6 @@ | |
"cal-address", | ||
"mailto:[email protected]" | ||
], | ||
[ | ||
"attendee", | ||
{ | ||
"cn": "Z\\;" | ||
}, | ||
"cal-address", | ||
"mailto:[email protected]" | ||
], | ||
[ | ||
"x-foo", | ||
{ | ||
|