allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [allura] 01/01: [#8370] Enforce no trailing slash on user admin page
Date Wed, 08 Jul 2020 20:33:41 GMT
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch kt/8370
in repository https://gitbox.apache.org/repos/asf/allura.git

commit b18827063752c5234fd27dd19c11a59f57519852
Author: Kenton Taylor <ktaylor@slashdotmedia.com>
AuthorDate: Wed Jul 8 20:33:23 2020 +0000

    [#8370] Enforce no trailing slash on user admin page
---
 Allura/allura/controllers/site_admin.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Allura/allura/controllers/site_admin.py b/Allura/allura/controllers/site_admin.py
index 7def94e..bf73ff7 100644
--- a/Allura/allura/controllers/site_admin.py
+++ b/Allura/allura/controllers/site_admin.py
@@ -645,6 +645,7 @@ class StatsController(object):
 class AdminUserDetailsController(object):
 
     @expose('jinja:allura:templates/site_admin_user_details.html')
+    @without_trailing_slash
     def _default(self, username, limit=25, page=0):
         user = M.User.by_username(username)
         if not user or user.is_anonymous():


Mime
View raw message