projects
/
shibboleth
/
sp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
https://issues.shibboleth.net/jira/browse/SSPCPP-472
[shibboleth/sp.git]
/
plugins
/
TransformAttributeResolver.cpp
diff --git
a/plugins/TransformAttributeResolver.cpp
b/plugins/TransformAttributeResolver.cpp
index
1856d3e
..
6b4bf7b
100644
(file)
--- a/
plugins/TransformAttributeResolver.cpp
+++ b/
plugins/TransformAttributeResolver.cpp
@@
-28,6
+28,7
@@
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include <algorithm>
#include <boost/shared_ptr.hpp>
+#include <boost/algorithm/string/trim.hpp>
#include <boost/tuple/tuple.hpp>
#include <shibsp/exceptions.h>
#include <shibsp/SessionCache.h>
#include <boost/tuple/tuple.hpp>
#include <shibsp/exceptions.h>
#include <shibsp/SessionCache.h>
@@
-232,10
+233,12
@@
void TransformAttributeResolver::resolveAttributes(ResolutionContext& ctx) const
if (dest) {
// Modify in place.
dest->getValues()[i] = narrow.get();
if (dest) {
// Modify in place.
dest->getValues()[i] = narrow.get();
+ trim(dest->getValues()[i]);
}
else {
// Add to new object.
destwrapper->getValues().push_back(narrow.get());
}
else {
// Add to new object.
destwrapper->getValues().push_back(narrow.get());
+ trim(destwrapper->getValues().back());
}
}
}
}
}
}