mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:25:56 +00:00
rewrite_relative_url: add theoretical fix for magnet links (refs #436)
This commit is contained in:
@@ -4805,7 +4805,9 @@
|
||||
* @return string Absolute URL
|
||||
*/
|
||||
function rewrite_relative_url($url, $rel_url) {
|
||||
if (strpos($rel_url, "://") !== false) {
|
||||
if (strpos($rel_url, "magnet:") === 0) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "://") !== false) {
|
||||
return $rel_url;
|
||||
} else if (strpos($rel_url, "/") === 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user