summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Zaikos <[email protected]>2014-08-22 16:44:20 -0400
committerDave Zaikos <[email protected]>2014-08-22 16:44:20 -0400
commit32703cc6369471fbfa96dcc916544d50f577863c (patch)
treec5dc49d496c6fb3e79e6e64da1e1fce57fa7becb /include
parent2242bb38d2e5a23e01973d079c42cc63484aeb8e (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.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
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')) {