From: Anna S. <asi...@us...> - 2007-05-18 14:58:56
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epprtk/rtk/xml In directory sc8-pr-cvs17:/tmp/cvs-serv12243/java/src/com/tucows/oxrs/epprtk/rtk/xml Modified Files: EPPXMLBase.java Log Message: Fixed bug that allows sending multiple extensions Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epprtk/rtk/xml/EPPXMLBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EPPXMLBase.java 7 Dec 2004 15:53:27 -0000 1.1 --- EPPXMLBase.java 18 May 2007 14:58:41 -0000 1.2 *************** *** 806,809 **** --- 806,810 ---- if ( extensions != null ) { + Element extension_element = doc.createElement("extension"); for ( int count = 0; count < extensions.length; count++ ) { *************** *** 816,820 **** try { - Element extension_element = doc.createElement("extension"); Node extension_node = getExtensionNode(extension_string); if ( extension_node != null ) --- 817,820 ---- *************** *** 830,835 **** extension_element.appendChild( doc.createTextNode(extension_string) ); } - - command.appendChild( extension_element ); } catch ( Exception xcp ) --- 830,833 ---- *************** *** 840,843 **** --- 838,842 ---- } } + command.appendChild( extension_element ); } debug(DEBUG_LEVEL_THREE,method_name,"Leaving"); |