From: Dave Zaikos Date: Fri, 22 Aug 2014 20:44:20 +0000 (-0400) Subject: Added ltrim to in fetch_file_contents to fix edge cases where a URL has one or more... X-Git-Tag: 1.14~14^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=32703cc6369471fbfa96dcc916544d50f577863c;p=tt-rss.git 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. --- 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')) {