diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Routing/ArchiveConstraint.CS b/src/Orchard.Web/Modules/Orchard.Blogs/Routing/ArchiveConstraint.CS index bb4c0e707..f5e4ad05f 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Routing/ArchiveConstraint.CS +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Routing/ArchiveConstraint.CS @@ -27,6 +27,14 @@ namespace Orchard.Blogs.Routing { return false; } + try { + // is this a valid date ? + archiveData.ToDateTime(); + } + catch { + return false; + } + return _blogPathConstraint.FindPath(path) != null; }