Merge branch 'wip-MDL-58915-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
David Monllao 2017-10-19 15:44:07 +02:00
commit 7c31ef2a27

View File

@ -1198,7 +1198,8 @@ class engine extends \core_search\engine {
return $this->curl;
}
$this->curl = new \curl();
// Connection to Solr is allowed to use 'localhost' and other potentially blocked hosts/ports.
$this->curl = new \curl(['ignoresecurity' => true]);
$options = array();
// Build the SSL options. Based on pecl-solr and general testing.