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

bugfix: Critical configuration errors should not enforce a baseurlpath.

The code was enforcing this option even if a configuration was passed as a parameter to the constructor. If there is something wrong with a configuration and we are passing it to the constructor, we should know if at least the 'baseurlpath' is correct, and if not, fix it somehow.

This bug was producing a default configuration without 'baseurlpath', when no configuration was passed. In that situation, only the default path (/simplesaml) was working correctly.
parent 1ed245c4
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,6 @@ class CriticalConfigurationError extends ConfigurationError
{
if ($config === null) {
$config = self::$minimum_config;
} else {
$config['baseurlpath'] = \SimpleSAML\Utils\HTTP::guessBasePath();
}
......
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