diff options
author | Andrew Dolgov <[email protected]> | 2014-12-03 22:43:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-12-03 22:43:25 +0300 |
commit | 9fd581336e3044425c3d2d915ee81c8c5741d226 (patch) | |
tree | 57e0709fb7945b8d441d258aaf6600c85646ce0a /include | |
parent | 2681f684c7ceed8b3de70223582e947c4b83143b (diff) |
fetch_file_contents: support retarded schema-less urls
af_comics_dilbert: fix for new dilbert.com shenanigans
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |