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.
This commit is contained in:
parent
2242bb38d2
commit
32703cc636
1 changed files with 1 additions and 0 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue