diff options
Diffstat (limited to 'libcmis/libcmis-0.3.0.patch')
-rw-r--r-- | libcmis/libcmis-0.3.0.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libcmis/libcmis-0.3.0.patch b/libcmis/libcmis-0.3.0.patch new file mode 100644 index 000000000000..d9dc70f6a40d --- /dev/null +++ b/libcmis/libcmis-0.3.0.patch @@ -0,0 +1,22 @@ +diff --git src/libcmis/ws-soap.cxx src/libcmis/ws-soap.cxx +index e8efd67..decb79a 100644 +--- src/libcmis/ws-soap.cxx ++++ src/libcmis/ws-soap.cxx +@@ -279,7 +279,7 @@ string SoapRequest::createEnvelope( string& username, string& password ) + boost::posix_time::ptime expires( created ); + expires = expires + boost::gregorian::days( 1 ); + string createdStr = libcmis::writeDateTime( created ); +- xmlChar* expiresStr = BAD_CAST( libcmis::writeDateTime( expires ).c_str( ) ); ++ string expiresStr = libcmis::writeDateTime( expires ); + + xmlTextWriterStartElement( writer, BAD_CAST( "S:Envelope" ) ); + xmlTextWriterWriteAttribute( writer, BAD_CAST( "xmlns:S" ), BAD_CAST( NS_SOAP_ENV_URL ) ); +@@ -296,7 +296,7 @@ string SoapRequest::createEnvelope( string& username, string& password ) + xmlTextWriterWriteRaw( writer, BAD_CAST( createdStr.c_str( ) ) ); + xmlTextWriterEndElement( writer ); // End of Created + xmlTextWriterStartElement( writer, BAD_CAST( "wsse:Expires" ) ); +- xmlTextWriterWriteRaw( writer, expiresStr ); ++ xmlTextWriterWriteRaw( writer, BAD_CAST( expiresStr.c_str() ) ); + xmlTextWriterEndElement( writer ); // End of Expires + xmlTextWriterEndElement( writer ); // End of Timestamp + |