https://issues.shibboleth.net/jira/browse/SSPCPP-472
[shibboleth/sp.git] / plugins / TemplateAttributeResolver.cpp
index f809cd9..124e8a4 100644 (file)
@@ -213,6 +213,7 @@ void TemplateAttributeResolver::resolveAttributes(ResolutionContext& ctx) const
         if (start != string::npos && start < m_template.length())
             processed += m_template.substr(start, i);    // append rest of string
 
+        trim(processed);
         if (processed.empty())
             dest->getValues().pop_back();
     }