You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2010/05/06 16:34:19 UTC

svn commit: r941755 - in /xml/security/trunk/c: CHANGELOG.txt src/dsig/DSIGTransformXSL.cpp

Author: scantor
Date: Thu May  6 14:34:19 2010
New Revision: 941755

URL: http://svn.apache.org/viewvc?rev=941755&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49256

Modified:
    xml/security/trunk/c/CHANGELOG.txt
    xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp

Modified: xml/security/trunk/c/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/CHANGELOG.txt?rev=941755&r1=941754&r2=941755&view=diff
==============================================================================
--- xml/security/trunk/c/CHANGELOG.txt (original)
+++ xml/security/trunk/c/CHANGELOG.txt Thu May  6 14:34:19 2010
@@ -3,6 +3,8 @@ Changes since 1.5.1
 * Fix for bug#48676 in RetrievalMethod handler (SC)
 * Fix for bug#45867, support for >1 CRL per KeyInfo (SC)
 * Fix for bug#49148, buffer initialization issue (SC)
+* Fix for bug#49255, vector index bug (SC)
+* Fix for bug#49256, stylesheet append bug (SC)
 * Expose algorithm URI on Signature and Reference objects (SC)
 * White/blacklisting of otherwise registered algorithms (SC)
 

Modified: xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp?rev=941755&r1=941754&r2=941755&view=diff
==============================================================================
--- xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp (original)
+++ xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp Thu May  6 14:34:19 2010
@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2005 The Apache Software Foundation.
+ * Copyright 2002-2010 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -162,10 +162,13 @@ DOMNode * DSIGTransformXSL::setStyleshee
 
 	DOMNode * ret = mp_stylesheetNode;
 
-	if (mp_stylesheetNode != 0) {
+	if (mp_stylesheetNode) {
 		mp_txfmNode->insertBefore(stylesheet, mp_stylesheetNode);
 		mp_txfmNode->removeChild(mp_stylesheetNode);
 	}
+	else {
+	    mp_txfmNode->appendChild(stylesheet);
+	}
 
 	mp_stylesheetNode = stylesheet;