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

bugfix: Do not remove attribute values that are not scoped.

The saml:FilterScopes filter was removing values that did not contain a scope. It shouldn't.
parent b45df072
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ class FilterScopes extends \SimpleSAML_Auth_ProcessingFilter ...@@ -74,6 +74,7 @@ class FilterScopes extends \SimpleSAML_Auth_ProcessingFilter
} }
$value_a = explode('@', $value, 2); $value_a = explode('@', $value, 2);
if (count($value_a) < 2) { if (count($value_a) < 2) {
$newValues[] = $value;
continue; // there's no scope continue; // there's no scope
} }
$scope = $value_a[1]; $scope = $value_a[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment