Commits

Anonymous committed ad713df

#i10000# #i101879# fix

Comments (0)

Files changed (1)

extensions/source/oooimprovement/soaprequest.cxx

 
     static const OString getSoapOfficeversion(const Reference<XMultiServiceFactory>& sf)
     {
-        OStringBuffer buf =
-            "<Officeversion Productname=\""
-            + ::rtl::OUStringToOString(oooimprovement::Config(sf).getCompleteProductname(), RTL_TEXTENCODING_ASCII_US)
-            + "\"/>\n";
-        return buf.makeStringAndClear();
+        return ::rtl::OUStringToOString(oooimprovement::Config(sf).getCompleteProductname(), RTL_TEXTENCODING_ASCII_US);
     };
 
     static const OString getSoapSoapId(const Reference<XMultiServiceFactory>& sf, const OString& soap_id)
         OStringBuffer buf;
         buf.append("<body xsi:type=\"xsd:string\">");
         buf.append(xmlEncode(soap_id)).append("\n");
-        buf.append(getSoapOfficeversion(sf));
+        buf.append(xmlEncode(getSoapOfficeversion(sf))).append("\n");
         buf.append("</body>\n");
         return buf.makeStringAndClear();
     };