]> git.wh0rd.org Git - tt-rss.git/commitdiff
fetch_file_contents: fix CURL option setting
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 18 Mar 2011 16:27:48 +0000 (19:27 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 18 Mar 2011 16:27:48 +0000 (19:27 +0300)
functions.php

index 2fe066f257f45f439bef71da53dfbc2b983815a0..01500f3cfa8932a3e68a251a4cce40bbdd87e58d 100644 (file)
                        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");