]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Allow posts with underscore
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Oct 2018 13:49:09 +0000 (14:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Oct 2018 13:49:09 +0000 (14:49 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/__init__.py

index f897e8220fcf1d7e7a92c4485fc3e2dfc1b6e943..eca7a0206edcdb4c16d3327e8da4d6551c17acfd 100644 (file)
@@ -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),