From: Michael Tremer Date: Thu, 11 Oct 2018 13:49:09 +0000 (+0100) Subject: blog: Allow posts with underscore X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d17a262437eeebdacb8b8e176cbe59c67fccbcb3;p=ipfire.org.git blog: Allow posts with underscore Signed-off-by: Michael Tremer --- diff --git a/src/web/__init__.py b/src/web/__init__.py index f897e822..eca7a020 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -128,9 +128,9 @@ class Application(tornado.web.Application): (r"/authors/(\w+)", blog.AuthorHandler), (r"/compose", blog.ComposeHandler), (r"/drafts", blog.DraftsHandler), - (r"/post/([0-9a-z\-\.]+)", blog.PostHandler), - (r"/post/([0-9a-z\-\.]+)/edit", blog.EditHandler), - (r"/post/([0-9a-z\-\.]+)/publish", blog.PublishHandler), + (r"/post/([0-9a-z\-\._]+)", blog.PostHandler), + (r"/post/([0-9a-z\-\._]+)/edit", blog.EditHandler), + (r"/post/([0-9a-z\-\._]+)/publish", blog.PublishHandler), (r"/search", blog.SearchHandler), (r"/tags/([0-9a-z\-\.]+)", blog.TagHandler), (r"/years/([0-9]+)", blog.YearHandler),