Merge pull request #135 from sunjayc99/master

Fix: fetching URLs with spaces
This commit is contained in:
Andrew Dolgov 2013-04-06 02:10:38 -07:00
commit 529802111e
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,8 @@
global $fetch_last_error; global $fetch_last_error;
global $fetch_last_error_code; global $fetch_last_error_code;
$url = str_replace(' ', '%20', $url);
if (!defined('NO_CURL') && function_exists('curl_init') && !ini_get("open_basedir")) { if (!defined('NO_CURL') && function_exists('curl_init') && !ini_get("open_basedir")) {