Skip to content

Conversation

@EvanHerman
Copy link
Contributor

@EvanHerman EvanHerman commented Apr 25, 2024

Description

  • Escape the iCal URL before initializing the events calendar.
  • Prevent localhost or 127.0x URLs from being used for external calendar URLs.

Types of changes

Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Tested by running nc -l 127.0.0.1 9000. Adding a Events block to the page, ticking off Link a calendar and adding the URL http://127.0.0.1:9000 to the calendar URL and ensuring an error is returned.

Checklist:

  • My code is tested
  • I've added proper labels to this pull request

@EvanHerman EvanHerman added the [Type] Bug Something that is not working as expected label Apr 25, 2024
@EvanHerman EvanHerman added this to the Next Release milestone Apr 25, 2024
@EvanHerman EvanHerman self-assigned this Apr 25, 2024
@AnthonyLedesma AnthonyLedesma merged commit b5b5fb7 into master Apr 30, 2024
@AnthonyLedesma AnthonyLedesma deleted the sanitize-ical-url branch April 30, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something that is not working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants