You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2004/08/02 13:49:16 UTC

cvs commit: xml-security/c/src/canon XSECC14n20010315.cpp

blautenb    2004/08/02 04:49:16

  Modified:    c/src/canon XSECC14n20010315.cpp
  Log:
  Fix bug reported by Ian Alderman on list 19 July
  
  Revision  Changes    Path
  1.16      +7 -2      xml-security/c/src/canon/XSECC14n20010315.cpp
  
  Index: XSECC14n20010315.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/canon/XSECC14n20010315.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- XSECC14n20010315.cpp	7 Mar 2004 03:20:51 -0000	1.15
  +++ XSECC14n20010315.cpp	2 Aug 2004 11:49:16 -0000	1.16
  @@ -35,6 +35,7 @@
   
   // Xerces includes
   #include <xercesc/dom/DOMNamedNodeMap.hpp>
  +#include <xercesc/util/XMLUniDefs.hpp>
   
   XERCES_CPP_NAMESPACE_USE
   
  @@ -1119,7 +1120,11 @@
   						}
   
   						// Append the local name as the secondary key
  -						m_formatBuffer << (*mp_formatter << tmpAtts->item(i)->getLocalName());
  +						const XMLCh * ln = tmpAtts->item(i)->getNodeName();
  +						int index = XMLString::indexOf(ln, chColon);
  +						if (index >= 0)
  +							ln = &ln[index+1];
  +						m_formatBuffer << (*mp_formatter << ln);
   						toIns->sortString.sbStrcatIn(m_formatBuffer);
   
   						// Insert node