diff options
author | Andrew Dolgov <[email protected]> | 2014-08-25 13:01:29 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-08-25 13:01:29 +0400 |
commit | fc1f0a6847c9c9fb4f265be85a3b66a5e4eb5b12 (patch) | |
tree | c5dc49d496c6fb3e79e6e64da1e1fce57fa7becb | |
parent | 2242bb38d2e5a23e01973d079c42cc63484aeb8e (diff) | |
parent | 32703cc6369471fbfa96dcc916544d50f577863c (diff) |
Merge pull request #403 from dzaikos/patch-leading-space-urls
Added ltrim to $url in fetch_file_contents()...
-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')) { |