itsberni Posted April 18, 2020 Posted April 18, 2020 Hi! when sanitizing an url, it outputs "http://myDomain.com". Is there a possibility to use https instead? Many Thanks!
Jan Romero Posted April 18, 2020 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
itsberni Posted April 22, 2020 Author 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!
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