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.
This commit is contained in:
Brad King 2008-10-10 11:23:17 -04:00
parent b3f43f0065
commit 657627c231
1 changed files with 1 additions and 1 deletions

View File

@ -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"))
{