From 3af549a1580bf1216bd091f01d5f4e16b924090a Mon Sep 17 00:00:00 2001 From: Green Date: Sat, 18 Jan 2025 17:56:34 +0300 Subject: [PATCH] Fix bug #72586 --- EpubFile/src/CEpubFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpubFile/src/CEpubFile.cpp b/EpubFile/src/CEpubFile.cpp index 0ee795bb15..eeb91f6e74 100644 --- a/EpubFile/src/CEpubFile.cpp +++ b/EpubFile/src/CEpubFile.cpp @@ -80,7 +80,7 @@ HRESULT CEpubFile::Convert(const std::wstring& sInputFile, const std::wstring& s if (nContent != std::wstring::npos) { nContent += 11; - sContent = sFileContent.substr(nContent, sFileContent.find(L'\"', nContent) - nContent); + sContent = sFileContent.substr(nContent, sFileContent.find_first_of(L"\"'", nContent) - nContent); } std::wstring sContentPath;