diff --git a/src/System/Status/StatusChecker.php b/src/System/Status/StatusChecker.php index 34d9ec13d79..533ffb864b9 100644 --- a/src/System/Status/StatusChecker.php +++ b/src/System/Status/StatusChecker.php @@ -389,11 +389,14 @@ public static function getCASStatus($public_only = true): array if ($status === null) { $status['status'] = self::STATUS_NO_DATA; if (!empty($CFG_GLPI['cas_host'])) { - $url = $CFG_GLPI['cas_host']; + // Rebuild CAS URL + // see `CAS_Client::_getServerBaseURL()` + $url = 'https://' . $CFG_GLPI['cas_host']; if (!empty($CFG_GLPI['cas_port'])) { $url .= ':' . (int)$CFG_GLPI['cas_port']; } $url .= '/' . $CFG_GLPI['cas_uri']; + if (Toolbox::isUrlSafe($url)) { $data = Toolbox::getURLContent($url); if (!empty($data)) {