From 9074448fd75c497af863c8320682efe8f058a3a2 Mon Sep 17 00:00:00 2001 From: cantor Date: Mon, 9 Jun 2003 05:25:08 +0000 Subject: [PATCH] Bypass spurious warning git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@486 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shib/AAP.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/shib/AAP.cpp b/shib/AAP.cpp index 6941a76..7cd128d 100644 --- a/shib/AAP.cpp +++ b/shib/AAP.cpp @@ -252,10 +252,13 @@ bool AAP::accept(const XMLCh* name, const XMLCh* originSite, DOMElement* e) for (vector >::const_iterator i=arule->second.m_anySiteRule.valueRules.begin(); i!=arule->second.m_anySiteRule.valueRules.end(); i++) { - if (i->first==AttributeRule::literal && i->second==n->getNodeValue()) + if (i->first==AttributeRule::literal) { - log.debug("any site, literal match"); - return true; + if (i->second==n->getNodeValue()) + { + log.debug("any site, literal match"); + return true; + } } else if (i->first==AttributeRule::regexp) { @@ -295,10 +298,13 @@ bool AAP::accept(const XMLCh* name, const XMLCh* originSite, DOMElement* e) for (vector >::const_iterator j=srule->second.valueRules.begin(); j!=srule->second.valueRules.end(); j++) { - if (j->first==AttributeRule::literal && j->second==n->getNodeValue()) + if (j->first==AttributeRule::literal) { - log.debug("matching site, literal match"); - return true; + if (j->second==n->getNodeValue()) + { + log.debug("matching site, literal match"); + return true; + } } else if (j->first==AttributeRule::regexp) { -- 2.1.4