OSDN Git Service

osdn#46082: Fix incorrect links to files with # in filename in folder comparison...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 23 Nov 2022 02:26:27 +0000 (11:26 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 23 Nov 2022 02:26:27 +0000 (11:26 +0900)
Src/DirCmpReport.cpp

index f9b5804..0252ea2 100644 (file)
@@ -508,6 +508,9 @@ void DirCmpReport::GenerateXmlHtmlContent(bool xml)
                if (!xml && m_bIncludeFileCmpReport && m_pFileCmpReport != nullptr)
                        (*m_pFileCmpReport.get())(REPORT_TYPE_SIMPLEHTML, m_pList.get(), currRow, sDestDir, sLinkPath);
 
+               strutils::replace(sLinkPath, _T("%"), _T("%25"));
+               strutils::replace(sLinkPath, _T("#"), _T("%23"));
+
                String rowEl = _T("tr");
                if (xml)
                {