~edwargix/git.sr.ht

76d2f1cc0520c462c780a9b396fb32c842e688ba — Drew DeVault 7 years ago 3e8b548
Fix trailing slashes on user pages
1 files changed, 1 insertions(+), 0 deletions(-)

M gitsrht/blueprints/public.py
M gitsrht/blueprints/public.py => gitsrht/blueprints/public.py +1 -0
@@ 83,6 83,7 @@ def cgit_plain(owner_name, repo_name, path):

@public.route("/~<username>")
def user_index(username):
    username = username.rstrip("/")
    user = User.query.filter(User.username == username).first()
    if not user:
        abort(404)