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

url tag doesn't handle https #65

Open
paxter opened this issue Dec 27, 2015 · 3 comments
Open

url tag doesn't handle https #65

paxter opened this issue Dec 27, 2015 · 3 comments

Comments

@paxter
Copy link

paxter commented Dec 27, 2015

The default url tag defintion ignores the https protocoll and set all urls to http. Escpecially for intern links on a website it's a problem, because all bbcode formatted texts link to http content and ignores if you are browsing the site via https.
Has anybody a quick solution for this problem?

@DaSourcerer
Copy link
Contributor

This seems to be a deficiency of filter_var(). Implement your own UrlValidator and overwrite the default definition for the url-tag.

@paxter
Copy link
Author

paxter commented Oct 2, 2016

filter_var() doesn't make a difference between https and http.

@DaSourcerer
Copy link
Contributor

Yes, that's pretty much what I wrote. Implementing your own variation of UrlValidator will allow you to get around that.

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

No branches or pull requests

2 participants