Hack around namespaces for built-in properties.
[shibboleth/cpp-opensaml.git] / saml / saml2 / binding / impl / SAML2POSTEncoder.cpp
index add0e2e..2e45daf 100644 (file)
@@ -83,8 +83,8 @@ static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
 SAML2POSTEncoder::SAML2POSTEncoder(const DOMElement* e, bool simple) : m_simple(simple)
 {
     if (e) {
-        auto_ptr_char t(e->getAttributeNS(NULL, _template));
-        if (t.get())
+        auto_ptr_char t(e->getAttribute(_template));
+        if (t.get() && *t.get())
             m_template = t.get();
     }
     if (m_template.empty())