ViewBlogPostByTitle error when post title contains fullstop Applies to: Morphfolia.PublishingSystem.dll v2.4.1.0 File: ViewBlogPostByTitle.cs Type: Morphfolia.PublishingSystem.HttpHandlers.ViewBlogPostByTitle
The HTTP Handler ViewBlogPostByTitle returns a "Content not found" message when attempting to return a blog post where the title contains a fullstop (.).
How to fix - Line 71 reads:
postTitle = postTitle.Substring(0, postTitle.IndexOf("."));
change to:
postTitle = postTitle.Substring(0, postTitle.LastIndexOf("."));
|