mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
баг с mimetype в епаб файле
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64594 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
6e3a49bb72
commit
2fb86778c0
@ -462,7 +462,8 @@ int CHtmlFile::ConvertEpub(const std::wstring& sFolder, std::wstring& sMetaInfo,
|
||||
if (!NSFile::CFileBinary::ReadAllTextUtf8(sFolderWithSlash + L"mimetype", sMimeType))
|
||||
return 1;
|
||||
|
||||
if (sMimeType != L"application/epub+zip")
|
||||
std::wstring::size_type findMime = sMimeType.find(L"application/epub+zip");
|
||||
if (findMime == std::wstring::npos || findMime > 10) // 10 - просто число. Заглушка под мега епабы
|
||||
return 1;
|
||||
|
||||
std::wstring sContainer = sFolderWithSlash + L"META-INF/container.xml";
|
||||
|
||||
Reference in New Issue
Block a user