@ -40,7 +40,7 @@ namespace Volo.Blogging.Pages.Blog.Posts
{
return Redirect("/");
}
if (BlogNameControlHelper.IsFileFormat(BlogShortName))
if (BlogNameControlHelper.IsProhibitedFileFormatName(BlogShortName))
return NotFound();
@ -38,7 +38,7 @@ namespace Volo.Blogging.Pages.Blog.Posts
public virtual async Task<ActionResult> OnGetAsync()
@ -7,7 +7,7 @@ namespace Volo.Blogging.Pages.Blogs.Shared.Helpers
public static readonly string[] ProhibitedFileExtensions = new string[] {".ico", ".txt", ".php"};
public static bool IsFileFormat(string blogShortName)
public static bool IsProhibitedFileFormatName(string blogShortName)
if (!string.IsNullOrWhiteSpace(blogShortName))