validate_url: add clean()
This commit is contained in:
parent
4abc7d7898
commit
6c02fea641
|
@ -1927,6 +1927,8 @@
|
|||
|
||||
function validate_url($url) {
|
||||
|
||||
$url = clean($url);
|
||||
|
||||
# fix protocol-relative URLs
|
||||
if (strpos($url, "//") === 0)
|
||||
$url = "https:" . $url;
|
||||
|
|
Loading…
Reference in New Issue