Allow deeplinks for iOS in platform links
Describe the bug
When adding a link to a platform, any URL that does not start with either http
or https
is not saved, with no error raised.
Many platforms, such as HyperCatcher, use them: https://hypercatcher.com/2020/05/resources-for-podcasters/
Steps to reproduce
- create a podcast
- go to
/cp-admin/podcasts/1/platforms
- add
hypercatcher://subscribe?url=http://joeroganexp.joerogan.libsynpro.com/rss
- Link is not saved. No error is raised.
Expected behavior
Deep links (starting with anything://
) should be allowed.
Actual behavior
Deeplinks are not saved.
Relevant logs and/or screenshots
N/A
Context
- Castopod: 1.1.2
- OS: Ubuntu 22.04
- Browser: Any
- Web server: nginx
Possible fixes
Remove valid_url_strict
:
https://code.castopod.org/adaures/castopod/-/blob/develop/modules/Admin/Controllers/PodcastPlatformController.php#L78