From 9fd581336e3044425c3d2d915ee81c8c5741d226 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 3 Dec 2014 22:43:25 +0300 Subject: fetch_file_contents: support retarded schema-less urls af_comics_dilbert: fix for new dilbert.com shenanigans --- include/functions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 1dbf004da..769c27af9 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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; -- cgit v1.2.3