Skip to content
Snippets Groups Projects
Commit 37c9ebf7 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #33756

parent 0aeb889f
Branches
Tags
7 merge requests!1553Master,!1502Master,!1501Stable,!1312Master,!1304Master,!1303Hotline master,!1300Hotline#33756 cosmogramme ne gere pas https avec koha
- ticket #33756 : Cosmogramme ne gère pas https avec Koha
\ No newline at end of file
......@@ -37,7 +37,9 @@ abstract class Class_WebService_SIGB_AbstractRESTService extends Class_WebServic
* @return Class_WebService_SIGB_AbstractRESTService
*/
public function setServerRoot($server_root) {
$this->_server_root = 'http://' . str_replace('http://', '', $server_root);
$this->_server_root = (false === strpos('https:://', $server_root)
? 'http://' . str_replace('http://', '', $server_root)
: $server_root);
return $this;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment