itsberni Posted April 18, 2020 Share Posted April 18, 2020 Hi! when sanitizing an url, it outputs "http://myDomain.com". Is there a possibility to use https instead? Many Thanks! Link to comment Share on other sites More sharing options...
Jan Romero Posted April 18, 2020 Share Posted April 18, 2020 The code says no. Arguably the function should use $options['allowSchemes'][0] if present, or something. I would suggest just replacing it: $url = substr_replace($url, 'https://', 0, 7); 1 Link to comment Share on other sites More sharing options...
itsberni Posted April 22, 2020 Author Share Posted April 22, 2020 On 4/18/2020 at 10:24 AM, Jan Romero said: The code says no. Arguably the function should use $options['allowSchemes'][0] if present, or something. I would suggest just replacing it: $url = substr_replace($url, 'https://', 0, 7); ok - thanks a bunch! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now