Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using tel, ftp and ftps as safe URL protocols #657

Merged

Conversation

atifcppprogrammer
Copy link
Contributor

@atifcppprogrammer atifcppprogrammer commented Mar 30, 2024

Closes #655

@joerdav
Copy link
Collaborator

joerdav commented Apr 2, 2024

This looks good, thanks for contributing!

@joerdav joerdav merged commit d57277f into a-h:main Apr 2, 2024
4 checks passed
@a-h
Copy link
Owner

a-h commented Apr 2, 2024

Thanks for that.

After seeing the change, I added a unit test and benchmark this morning. I was interested in whether it was a good idea to just add another bunch of if checks, rather than look up in a map or slice, but it was still faster to keep the if statements.

@atifcppprogrammer atifcppprogrammer deleted the feature/additional-safe-protocols branch April 4, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: add tel: as safe URL protocol
3 participants