mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-06 20:51:01 +02:00
Support protocol-relative URLs
This commit is contained in:
parent
445313bade
commit
f9052d35ac
@ -4800,6 +4800,9 @@
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "://") !== false) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "//") === 0) {
|
||||
# protocol-relative URL (rare but they exist)
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "/") === 0)
|
||||
{
|
||||
$parts = parse_url($url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user