]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
fetch_file_contents: support retarded schema-less urls
[tt-rss.git] / include / functions.php
index 1dbf004daf3c699e4bc03b65b98b0b2ec00c6a2f..769c27af9f13040c415c667df7ff351b7cc3d415 100644 (file)
                $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;