Skip to content
Snippets Groups Projects
Commit a5ca1aa3 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Stop using SimpleSAML_Configuration::getBaseURL().

Use the recently added SimpleSAML_Configuration::getBasePath() instead. It guarantees the path prepended with a slash, so no need to do that every time when calling the method. As a side effect, we get rid of buggy invocations (calling getBaseUrl() instead of getBaseURL()), and also of old-style convention for the 'baseurlpath' configuration option, allowing a star at the beginning.
parent 2c3146da
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ class SimpleSAML_XHTML_IdPDisco
// we save the cookies for 90 days
'lifetime' => (60 * 60 * 24 * 90),
// the base path for cookies. This should be the installation directory for SimpleSAMLphp
'path' => ('/'.$this->config->getBaseUrl()),
'path' => $this->config->getBasePath(),
'httponly' => false,
);
......
......@@ -8,7 +8,7 @@ require_once('_include.php');
// The base path for cookies. This should be the installation directory for SimpleSAMLphp.
$config = SimpleSAML_Configuration::getInstance();
$cookiePath = '/' . $config->getBaseUrl();
$cookiePath = $config->getBasePath();
// We delete all cookies which starts with 'idpdisco_'
foreach($_COOKIE as $cookieName => $value) {
......
......@@ -204,7 +204,7 @@ class sspmod_multiauth_Auth_Source_MultiAuth extends SimpleSAML_Auth_Source {
'lifetime' => (60*60*24*90),
/* The base path for cookies.
This should be the installation directory for SimpleSAMLphp. */
'path' => ('/' . $config->getBaseUrl()),
'path' => $config->getBasePath(),
'httponly' => FALSE,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment