Skip to content

Commit

Permalink
Prise en compte des flux https
Browse files Browse the repository at this point in the history
#41 merci à cobalt74
  • Loading branch information
ldleman committed Mar 25, 2013
1 parent ef2f3c5 commit b814203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimplePie.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6832,6 +6832,7 @@ public function __construct($url, $timeout = 10, $redirects = 5, $headers = null
{
$this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_CURL;
$fp = curl_init();
$headers2 = array();
foreach ($headers as $key => $value)
{
Expand All @@ -6849,6 +6850,7 @@ public function __construct($url, $timeout = 10, $redirects = 5, $headers = null
curl_setopt($fp, CURLOPT_REFERER, $url);
curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
curl_setopt($fp, CURLOPT_SSL_VERIFYPEER, false); /* AJOUT LEED GESTION HTTPS */
if (!ini_get('open_basedir') && !ini_get('safe_mode') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))
{
curl_setopt($fp, CURLOPT_FOLLOWLOCATION, 1);
Expand Down

0 comments on commit b814203

Please sign in to comment.