Permalink
Browse files

Fix /domain listings with IPv6 address

  • Loading branch information...
1 parent 6ea6a6d commit 2cfd44f8aef9cc30c33aeefcf728e4da8e637263 @k21 committed Dec 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 r2/r2/config/middleware.py
@@ -356,7 +356,7 @@ def __call__(self, environ, start_response):
return self.app(environ, start_response)
class DomainListingMiddleware(object):
- domain_pattern = re.compile(r'\A/domain/(([-\w]+\.)+[\w]+)')
+ domain_pattern = re.compile(r'\A/domain/(([-\w]+\.)+[\w]+|\[[0-9a-fA-F:]+\])')
def __init__(self, app):
self.app = app

0 comments on commit 2cfd44f

Please sign in to comment.