projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4eaa200
)
Only include non-empty RelayState header.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 4 Aug 2009 18:37:16 +0000
(18:37 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 4 Aug 2009 18:37:16 +0000
(18:37 +0000)
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
patch
|
blob
|
history
diff --git
a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp
b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp
index
90ea516
..
5e6c614
100644
(file)
--- a/
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
+++ b/
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
@@
-180,7
+180,7
@@
long SAML2ECPEncoder::encode(
header->getUnknownXMLObjects().push_back(hdrblock);
}
header->getUnknownXMLObjects().push_back(hdrblock);
}
- if (relayState) {
+ if (relayState
&& *relayState
) {
// Create ecp:RelayState header.
static const XMLCh RelayState[] = UNICODE_LITERAL_10(R,e,l,a,y,S,t,a,t,e);
hdrblock = dynamic_cast<ElementProxy*>(m_anyBuilder.buildObject(SAML20ECP_NS, RelayState, SAML20ECP_PREFIX));
// Create ecp:RelayState header.
static const XMLCh RelayState[] = UNICODE_LITERAL_10(R,e,l,a,y,S,t,a,t,e);
hdrblock = dynamic_cast<ElementProxy*>(m_anyBuilder.buildObject(SAML20ECP_NS, RelayState, SAML20ECP_PREFIX));