mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Exclude domain listings from not_in_sr routing test.
This prevents matching urls starting with /domain/something.com due to the way our domain middleware works.
This commit is contained in:
@@ -28,8 +28,9 @@ from pylons import config
|
||||
|
||||
|
||||
def not_in_sr(environ, results):
|
||||
return 'subreddit' not in environ and 'sub_domain' not in environ
|
||||
|
||||
return ('subreddit' not in environ and
|
||||
'sub_domain' not in environ and
|
||||
'domain' not in environ)
|
||||
|
||||
def make_map():
|
||||
map = Mapper()
|
||||
|
||||
Reference in New Issue
Block a user