diff options
author | Andrew Dolgov <[email protected]> | 2011-03-18 19:27:48 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-03-18 19:27:48 +0300 |
commit | 5f6804bc72e1ffb336772807566b2a966eeca074 (patch) | |
tree | fb93af0f6eeb4930b35f6fd13b86cf5f23ddbea3 /functions.php | |
parent | 7b26a148b0fcd904ea5425fd5d317b53704822dc (diff) |
fetch_file_contents: fix CURL option setting
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 2fe066f25..01500f3cf 100644 --- a/functions.php +++ b/functions.php @@ -371,7 +371,7 @@ curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($fp, CURLOPT_HTTPAUTH, CURLAUTH_ANY); + curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); if ($login && $pass) curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass"); |