summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-10 15:23:17 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-10 15:23:17 (GMT)
commit657627c231caac9fe816f24ec2e98b895d13292a (patch)
tree85c6daad554c2ef1b032149a6a0c00b821910d00 /Source
parentb3f43f006527fdb8c3750213522a6f82107e9465 (diff)
downloadCMake-657627c231caac9fe816f24ec2e98b895d13292a.zip
CMake-657627c231caac9fe816f24ec2e98b895d13292a.tar.gz
CMake-657627c231caac9fe816f24ec2e98b895d13292a.tar.bz2
BUG: Fix help type for filenames with many dots
The help page type should be determined using only the extension after the last dot. See issue #7797.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmDocumentation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 8b6f69e..acf8058 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -634,7 +634,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os)
cmDocumentation::Form cmDocumentation::GetFormFromFilename(
const std::string& filename)
{
- std::string ext = cmSystemTools::GetFilenameExtension(filename);
+ std::string ext = cmSystemTools::GetFilenameLastExtension(filename);
ext = cmSystemTools::UpperCase(ext);
if ((ext == ".HTM") || (ext == ".HTML"))
{