[x] Escape the iCal URL before initializing the events calendar.
[x] 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.
Description
localhost
or127.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 aEvents
block to the page, ticking offLink a calendar
and adding the URLhttp://127.0.0.1:9000
to the calendar URL and ensuring an error is returned.Checklist: