summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaime Pérez <jaime.perez@uninett.no>2016-07-29 14:51:35 +0200
committerJaime Pérez <jaime.perez@uninett.no>2016-07-29 14:51:35 +0200
commit7e66127fc4ec02f00e562c703880acb3ec689e09 (patch)
treefce8a16f8b33ebea941f39509f5035f137ca2f5e
parentb45df0729c5d9048d975a1bb7b6e77f58c54edf5 (diff)
downloadsimplesamlphp-7e66127fc4ec02f00e562c703880acb3ec689e09.zip
simplesamlphp-7e66127fc4ec02f00e562c703880acb3ec689e09.tar.gz
simplesamlphp-7e66127fc4ec02f00e562c703880acb3ec689e09.tar.bz2
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.
-rw-r--r--modules/saml/lib/Auth/Process/FilterScopes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/saml/lib/Auth/Process/FilterScopes.php b/modules/saml/lib/Auth/Process/FilterScopes.php
index 5457ae9..6fe173b 100644
--- a/modules/saml/lib/Auth/Process/FilterScopes.php
+++ b/modules/saml/lib/Auth/Process/FilterScopes.php
@@ -74,6 +74,7 @@ class FilterScopes extends \SimpleSAML_Auth_ProcessingFilter
}
$value_a = explode('@', $value, 2);
if (count($value_a) < 2) {
+ $newValues[] = $value;
continue; // there's no scope
}
$scope = $value_a[1];