1
0
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:
Andrew Dolgov
2014-12-03 22:43:25 +03:00
parent 2681f684c7
commit 9fd581336e
2 changed files with 19 additions and 6 deletions

View File

@@ -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;