Skip to content
Snippets Groups Projects
Commit e59afef8 authored by Cato Olsen's avatar Cato Olsen
Browse files

If the SP remote metadata lacked 'attributes', all available attributes were...

If the SP remote metadata lacked 'attributes', all available attributes were released. Changed to no attributes in order to keep consistent with the behaviour when finding an empty 'attributes' array.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1272 44740490-163a-0410-bde0-09ae8108e29a
parent d313bfdf
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,11 @@ class sspmod_core_Auth_Process_AttributeLimit extends SimpleSAML_Auth_Processing
}
} elseif (array_key_exists('attributes', $request['Destination'])) {
$this->allowedAttributes = $request['Destination']['attributes'];
} else {
return;
}
}
$attributes =& $request['Attributes'];
foreach($attributes as $name => $values) {
if(!in_array($name, $this->allowedAttributes, TRUE)) {
unset($attributes[$name]);
......
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