public function getBaseURL()
{
if (!$this->deprecated_base_url_used) {
$this->deprecated_base_url_used = true;
SimpleSAML\Logger::warning("SimpleSAML_Configuration::getBaseURL() is deprecated, please use getBasePath() instead.");
}
if (preg_match('/^\\*(.*)$/D', $this->getString('baseurlpath', 'simplesaml/'), $matches)) {
// deprecated behaviour, will be removed in the future
return \SimpleSAML\Utils\HTTP::getFirstPathElement(false) . $matches[1];
}
return ltrim($this->getBasePath(), '/');
}