mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Merge pull request #1234 from ONLYOFFICE/hotfix/v7.4.1
Fix NormalizePath method
This commit is contained in:
@ -367,11 +367,11 @@ public:
|
||||
if (curRel.target_mode == L"Internal" && !CSignFolderFiles::CheckNeedSign(curRel.target))
|
||||
continue;
|
||||
|
||||
std::wstring sFullPath = oInfo.GetHeadPath(curRel.target);
|
||||
|
||||
// если внутренний файл отсутствует - не валидная подпись
|
||||
if (curRel.target_mode == L"Internal")
|
||||
{
|
||||
std::wstring sFullPath = oInfo.GetHeadPath(curRel.target);
|
||||
|
||||
if (!m_pFolder->exists(sFullPath))
|
||||
m_valid = OOXML_SIGNATURE_INVALID;
|
||||
else
|
||||
|
||||
@ -40,7 +40,7 @@ public:
|
||||
std::wstring GetHeadPath(const std::wstring& sFile)
|
||||
{
|
||||
std::wstring sFullPath = m_sAliasDirectory + L"/" + sFile;
|
||||
NSSystemPath::NormalizePath(sFullPath);
|
||||
sFullPath = NSSystemPath::NormalizePath(sFullPath);
|
||||
|
||||
if (!sFullPath.empty() && '/' != sFullPath[0])
|
||||
sFullPath = L"/" + sFullPath;
|
||||
|
||||
Reference in New Issue
Block a user