mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 20:53:29 +08:00
fix bug #52607
This commit is contained in:
@ -630,8 +630,8 @@ namespace DocFileFormat
|
||||
d = (int)_writeTocLink.find(L" ");
|
||||
_writeTocLink = _writeTocLink.substr(0, d);
|
||||
|
||||
_writeAfterRun = std::wstring (L"<w:hyperlink w:anchor = \"");
|
||||
_writeAfterRun += _writeTocLink;
|
||||
_writeAfterRun = std::wstring (L"<w:hyperlink w:anchor=\"");
|
||||
_writeAfterRun += XmlUtils::EncodeXmlString(_writeTocLink);
|
||||
_writeAfterRun += std::wstring (L"\" w:history=\"1\">");
|
||||
|
||||
break;
|
||||
|
||||
@ -1380,7 +1380,7 @@ private:
|
||||
if(nSharp == std::wstring::npos)
|
||||
oXml->WriteString(NSFile::GetFileName(sRef));
|
||||
else
|
||||
oXml->WriteString(sRef.c_str() + nSharp + 1);
|
||||
oXml->WriteEncodeXmlString(sRef.c_str() + nSharp + 1);
|
||||
}
|
||||
// Внешняя ссылка
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user