diff --git a/VERSIONS_HOTLINE/33756 b/VERSIONS_HOTLINE/33756 new file mode 100644 index 0000000000000000000000000000000000000000..72f69bcff118063c9940b11865ee04c46a0add1b --- /dev/null +++ b/VERSIONS_HOTLINE/33756 @@ -0,0 +1 @@ + - ticket #33756 : Cosmogramme ne gère pas https avec Koha \ No newline at end of file diff --git a/library/Class/WebService/SIGB/AbstractRESTService.php b/library/Class/WebService/SIGB/AbstractRESTService.php index 1303ebb6ebac571764193cc3bbe0ba4201af0624..6aa2c825958eda5f116f681641283eac8c341ccd 100644 --- a/library/Class/WebService/SIGB/AbstractRESTService.php +++ b/library/Class/WebService/SIGB/AbstractRESTService.php @@ -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; }