summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML')
-rw-r--r--lib/SimpleSAML/Metadata/MetaDataStorageHandler.php3
-rw-r--r--lib/SimpleSAML/SessionHandlerPHP.php2
-rw-r--r--lib/SimpleSAML/Utils/HTTP.php2
-rw-r--r--lib/SimpleSAML/XHTML/Template.php3
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php b/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
index 18083c2..95b32b5 100644
--- a/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
+++ b/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
@@ -98,8 +98,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler
$config = SimpleSAML_Configuration::getInstance();
assert($config instanceof SimpleSAML_Configuration);
- $baseurl = \SimpleSAML\Utils\HTTP::getSelfURLHost().'/'.
- $config->getBaseURL();
+ $baseurl = \SimpleSAML\Utils\HTTP::getSelfURLHost().$config->getBasePath();
if ($set == 'saml20-sp-hosted') {
if ($property === 'SingleLogoutServiceBinding') {
diff --git a/lib/SimpleSAML/SessionHandlerPHP.php b/lib/SimpleSAML/SessionHandlerPHP.php
index eb0c7d5..dd689d0 100644
--- a/lib/SimpleSAML/SessionHandlerPHP.php
+++ b/lib/SimpleSAML/SessionHandlerPHP.php
@@ -318,7 +318,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler
$ret['path'] = $config->getBoolean(
'session.phpsession.limitedpath',
false
- ) ? '/'.$config->getBaseURL() : '/';
+ ) ? $config->getBasePath() : '/';
}
$ret['httponly'] = $config->getBoolean('session.phpsession.httponly', true);
diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index 068a8a6..9de34eb 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -581,7 +581,7 @@ class HTTP
$hostname = self::getServerHost();
$port = self::getServerPort();
- $path = '/'.$globalConfig->getBaseURL();
+ $path = $globalConfig->getBasePath();
return $protocol.$hostname.$port.$path;
} else {
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 7cbf709..8214ac1 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -50,7 +50,8 @@ class SimpleSAML_XHTML_Template
{
$this->configuration = $configuration;
$this->template = $template;
- $this->data['baseurlpath'] = $this->configuration->getBaseURL();
+ // TODO: do not remove the slash from the beginning, change the templates instead!
+ $this->data['baseurlpath'] = ltrim($this->configuration->getBasePath(), '/');
$this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
}