From 4476b579319048acb8ce32ffbc3cc31c9ec26568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 7 Apr 2010 03:08:30 +0200 Subject: Also allow trailing slashes for redirects --- controller.py | 1 + 1 file changed, 1 insertion(+) (limited to 'controller.py') diff --git a/controller.py b/controller.py index e819862..0cb2ea9 100644 --- a/controller.py +++ b/controller.py @@ -24,6 +24,7 @@ class Redirect: redirects[name.strip()] = url.strip() def GET(self, name): + if name[-1] == "/": name = name[:-1] if name not in self.redirects: raise web.TempRedirect("/") else: -- cgit v1.2.3