validate_url: add clean()

This commit is contained in:
Andrew Dolgov 2020-09-15 08:45:15 +03:00
parent 4abc7d7898
commit 6c02fea641
1 changed files with 2 additions and 0 deletions

View File

@ -1927,6 +1927,8 @@
function validate_url($url) {
$url = clean($url);
# fix protocol-relative URLs
if (strpos($url, "//") === 0)
$url = "https:" . $url;