mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 22:00:23 +02:00
[contents] Limit cURL protocols to HTTP and HTTPS
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user