jBBCode icon indicating copy to clipboard operation
jBBCode copied to clipboard

url tag doesn't handle https

Open paxter opened this issue 9 years ago • 4 comments

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?

paxter avatar Dec 27 '15 18:12 paxter

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

DaSourcerer avatar Sep 19 '16 10:09 DaSourcerer

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

paxter avatar Oct 02 '16 23:10 paxter

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

DaSourcerer avatar Oct 03 '16 00:10 DaSourcerer