From 32703cc6369471fbfa96dcc916544d50f577863c Mon Sep 17 00:00:00 2001 From: Dave Zaikos Date: Fri, 22 Aug 2014 16:44:20 -0400 Subject: [PATCH] Added ltrim to in fetch_file_contents to fix edge cases where a URL has one or more spaces before it, which causes CURL to fail. --- include/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions.php b/include/functions.php index 764dea10..d783bd85 100644 --- a/include/functions.php +++ b/include/functions.php @@ -354,6 +354,7 @@ global $fetch_last_content_type; global $fetch_curl_used; + $url = ltrim($url, ' '); $url = str_replace(' ', '%20', $url); if (!defined('NO_CURL') && function_exists('curl_init')) { -- 2.39.5