diff options
author | Dave Zaikos <[email protected]> | 2014-08-22 16:44:20 -0400 |
---|---|---|
committer | Dave Zaikos <[email protected]> | 2014-08-22 16:44:20 -0400 |
commit | 32703cc6369471fbfa96dcc916544d50f577863c (patch) | |
tree | c5dc49d496c6fb3e79e6e64da1e1fce57fa7becb | |
parent | 2242bb38d2e5a23e01973d079c42cc63484aeb8e (diff) |
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.
-rw-r--r-- | include/functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index 764dea10e..d783bd853 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')) { |