mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Force use of latest cacert.pem from Mozilla
This commit is contained in:
parent
0079fc7b38
commit
1bbd6cdb5f
3 changed files with 3236 additions and 1 deletions
|
|
@ -285,6 +285,10 @@ class Context
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load certificate authorities for curl and openssl.
|
||||||
|
ini_set('curl.cainfo', RX_BASEDIR . 'common/libraries/cacert.pem');
|
||||||
|
ini_set('openssl.cafile', RX_BASEDIR . 'common/libraries/cacert.pem');
|
||||||
|
|
||||||
// Load language support.
|
// Load language support.
|
||||||
$enabled_langs = self::loadLangSelected();
|
$enabled_langs = self::loadLangSelected();
|
||||||
$set_lang_cookie = false;
|
$set_lang_cookie = false;
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,10 @@ class FileHandler
|
||||||
$host = parse_url($url, PHP_URL_HOST);
|
$host = parse_url($url, PHP_URL_HOST);
|
||||||
$request_headers = array();
|
$request_headers = array();
|
||||||
$request_cookies = array();
|
$request_cookies = array();
|
||||||
$request_options = array('timeout' => $timeout);
|
$request_options = array(
|
||||||
|
'verify' => \RX_BASEDIR . 'common/libraries/cacert.pem',
|
||||||
|
'timeout' => $timeout,
|
||||||
|
);
|
||||||
|
|
||||||
foreach($headers as $key => $val)
|
foreach($headers as $key => $val)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
3228
common/libraries/cacert.pem
Normal file
3228
common/libraries/cacert.pem
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue