mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
fetch_file_contents: support retarded schema-less urls
af_comics_dilbert: fix for new dilbert.com shenanigans
This commit is contained in:
@@ -357,6 +357,9 @@
|
||||
$url = ltrim($url, ' ');
|
||||
$url = str_replace(' ', '%20', $url);
|
||||
|
||||
if (strpos($url, "//") === 0)
|
||||
$url = 'http:' . $url;
|
||||
|
||||
if (!defined('NO_CURL') && function_exists('curl_init')) {
|
||||
|
||||
$fetch_curl_used = true;
|
||||
|
||||
Reference in New Issue
Block a user