forked from blallo/rss-bridge
[contents] Limit cURL protocols to HTTP and HTTPS
This commit is contained in:
parent
6caca4946b
commit
5bd9c1611d
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ function getContents($url, $header = array(), $opts = array()){
|
|||
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, ini_get('user_agent'));
|
||||
curl_setopt($ch, CURLOPT_ENCODING, '');
|
||||
curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
|
||||
|
||||
if(is_array($opts)) {
|
||||
foreach($opts as $key => $value) {
|
||||
|
|
Loading…
Reference in a new issue