validate_url: add clean()

master
Andrew Dolgov 4 years ago
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…
Cancel
Save