mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 09:56:02 +00:00
rewrite_relative_url: do not skip urls containing :
This commit is contained in:
@@ -2048,9 +2048,7 @@
|
||||
* @return string Absolute URL
|
||||
*/
|
||||
function rewrite_relative_url($url, $rel_url) {
|
||||
if (strpos($rel_url, ":") !== false) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "://") !== false) {
|
||||
if (strpos($rel_url, "://") !== false) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "//") === 0) {
|
||||
# protocol-relative URL (rare but they exist)
|
||||
|
||||
Reference in New Issue
Block a user