mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-03 12:01:00 +01:00
validate_url: add clean()
This commit is contained in:
parent
4abc7d7898
commit
6c02fea641
@ -1927,6 +1927,8 @@
|
|||||||
|
|
||||||
function validate_url($url) {
|
function validate_url($url) {
|
||||||
|
|
||||||
|
$url = clean($url);
|
||||||
|
|
||||||
# fix protocol-relative URLs
|
# fix protocol-relative URLs
|
||||||
if (strpos($url, "//") === 0)
|
if (strpos($url, "//") === 0)
|
||||||
$url = "https:" . $url;
|
$url = "https:" . $url;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user