From 5f6804bc72e1ffb336772807566b2a966eeca074 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Mar 2011 19:27:48 +0300 Subject: [PATCH] fetch_file_contents: fix CURL option setting --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 2fe066f2..01500f3c 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"); -- 2.39.5