mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Handle multi paths from route URLs case insensitively.
This fixes multi lookups for users with capital letters in their name.
This commit is contained in:
@@ -391,8 +391,8 @@ def set_subreddit():
|
||||
routes_dict = request.environ["pylons.routes_dict"]
|
||||
if "multipath" in routes_dict and "username" in routes_dict:
|
||||
try:
|
||||
path = '/user/%s/m/%s' % (routes_dict["username"],
|
||||
routes_dict["multipath"])
|
||||
path = '/user/%s/m/%s' % (routes_dict["username"].lower(),
|
||||
routes_dict["multipath"].lower())
|
||||
c.site = LabeledMulti._byID(path)
|
||||
except tdb_cassandra.NotFound:
|
||||
abort(404)
|
||||
|
||||
Reference in New Issue
Block a user