mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
@ -435,8 +435,9 @@ namespace NSCSS
|
||||
{
|
||||
std::map<StatistickElement, unsigned int>::const_iterator oFindCountId = m_mStatictics->find(StatistickElement{StatistickElement::IsId, sId});
|
||||
|
||||
if (((bIsSettings && oFindCountId->second < MaxNumberRepetitions) ||
|
||||
(!bIsSettings && oFindCountId->second >= MaxNumberRepetitions)))
|
||||
if ((m_mStatictics->end() != oFindCountId) &&
|
||||
(((bIsSettings && oFindCountId->second < MaxNumberRepetitions) ||
|
||||
(!bIsSettings && oFindCountId->second >= MaxNumberRepetitions))))
|
||||
{
|
||||
if (!oFindId->second->Empty())
|
||||
arFindElements.push_back(oFindId->second);
|
||||
|
||||
@ -454,8 +454,7 @@ public:
|
||||
std::string xml_string = XmlUtils::GetUtf8FromFileContent(buffer, dwReadBytes);
|
||||
|
||||
bool bRes = false;
|
||||
if ((std::string::npos != xml_string.find("Content-Type: multipart/related")) &&
|
||||
(std::string::npos != xml_string.find("Content-Type: text/html")))
|
||||
if (std::string::npos != xml_string.find("Content-Type: multipart/related"))
|
||||
{
|
||||
BYTE* pData;
|
||||
DWORD nLength;
|
||||
@ -464,7 +463,15 @@ public:
|
||||
|
||||
std::string sFileContent = XmlUtils::GetUtf8FromFileContent(pData, nLength);
|
||||
RELEASEARRAYOBJECTS(pData);
|
||||
|
||||
/*
|
||||
std::wstring sRes = mhtToXhtml(sFileContent);
|
||||
NSFile::CFileBinary oWriter;
|
||||
if (oWriter.CreateFileW(m_sTmp + L"/res.html"))
|
||||
{
|
||||
oWriter.WriteStringUTF8(sRes);
|
||||
oWriter.CloseFile();
|
||||
}
|
||||
*/
|
||||
bRes = m_oLightReader.FromString(mhtToXhtml(sFileContent));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user