Skip to content

Commit

Permalink
make sure that the edge case of an empty quoted string is considered
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Oct 3, 2022
1 parent 2e8430a commit 832a166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN:VEVENT
ORGANIZER;CN="":that
END:VEVENT
4 changes: 4 additions & 0 deletions src/icalendar/tests/test_issue_355_url_escaping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ def test_other_facebook_link_is_correctly_parsed(events):
"""
expected_result = 'https://www.facebook.com/events/756119502186737/?acontext=%7B%22source%22%3A5%2C%22action_history%22%3A[%7B%22surface%22%3A%22page%22%2C%22mechanism%22%3A%22main_list%22%2C%22extra_data%22%3A%22%5C%22[]%5C%22%22%7D]%2C%22has_source%22%3Atrue%7D'
assert events.issue_355_url_escaping_2["DESCRIPTION"] == expected_result

def test_empty_quotes(events):
"""Make sure that empty quoted parameter values are supported."""
assert events.issue_355_url_escaping_empty_param['ORGANIZER'].params['CN'] == ""

0 comments on commit 832a166

Please sign in to comment.