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:
91925e3
)
https://issues.shibboleth.net/jira/browse/CPPOST-34
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 31 Aug 2009 19:15:43 +0000
(19:15 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 31 Aug 2009 19:15:43 +0000
(19:15 +0000)
saml/signature/ContentReference.cpp
patch
|
blob
|
history
diff --git
a/saml/signature/ContentReference.cpp
b/saml/signature/ContentReference.cpp
index
80f248a
..
ffc7708
100644
(file)
--- a/
saml/signature/ContentReference.cpp
+++ b/
saml/signature/ContentReference.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2001-200
7
Internet2
+ * Copyright 2001-200
9
Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-94,8
+94,11
@@
void ContentReference::addInclusivePrefix(const XMLCh* prefix)
void ContentReference::addPrefixes(const std::set<Namespace>& namespaces)
{
void ContentReference::addPrefixes(const std::set<Namespace>& namespaces)
{
- for (set<Namespace>::const_iterator n = namespaces.begin(); n!=namespaces.end(); ++n)
- addInclusivePrefix(n->getNamespacePrefix());
+ for (set<Namespace>::const_iterator n = namespaces.begin(); n!=namespaces.end(); ++n) {
+ // Check for xmlns:xml.
+ if (!XMLString::equals(n->getNamespacePrefix(), xmlconstants::XML_PREFIX) || !XMLString::equals(n->getNamespaceURI(), xmlconstants::XML_NS))
+ addInclusivePrefix(n->getNamespacePrefix());
+ }
}
void ContentReference::addPrefixes(const XMLObject& xmlObject)
}
void ContentReference::addPrefixes(const XMLObject& xmlObject)