From 7e66127fc4ec02f00e562c703880acb3ec689e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no> Date: Fri, 29 Jul 2016 14:51:35 +0200 Subject: [PATCH] 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. --- modules/saml/lib/Auth/Process/FilterScopes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/saml/lib/Auth/Process/FilterScopes.php b/modules/saml/lib/Auth/Process/FilterScopes.php index 5457ae9c5..6fe173b7b 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]; -- GitLab