From 44b3141ca5ae702c4e896e3646507b4511cbf02e Mon Sep 17 00:00:00 2001 From: Jeff Krug <jk90@shire.icl.gtri.org> Date: Thu, 24 Sep 2015 23:06:53 -0400 Subject: [PATCH] Fixed a bug in how %replace is handled when 'target' is specified to avoid multiple attribute values instead of replacing the attribute value. --- modules/core/lib/Auth/Process/AttributeAlter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/lib/Auth/Process/AttributeAlter.php b/modules/core/lib/Auth/Process/AttributeAlter.php index 0008fc365..d8e9e6a0f 100644 --- a/modules/core/lib/Auth/Process/AttributeAlter.php +++ b/modules/core/lib/Auth/Process/AttributeAlter.php @@ -152,7 +152,7 @@ class sspmod_core_Auth_Process_AttributeAlter extends SimpleSAML_Auth_Processing if ($this->subject === $this->target) { $value = $new_value; } else { - $attributes[$this->target][] = $new_value; + $attributes[$this->target] = array($new_value); } } } -- GitLab