1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

validate_url: add clean()

This commit is contained in:
Andrew Dolgov
2020-09-15 08:45:15 +03:00
parent 4abc7d7898
commit 6c02fea641

View File

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