Permalink
Browse files

Set default validation

  • Loading branch information...
ericholscher committed Feb 19, 2013
1 parent 74879f0 commit e30683a79f3fbf07f212d9b7c65d69c554e9aba9
Showing with 2 additions and 1 deletion.
  1. +2 −1 readthedocs/core/underscore_middleware.py
@@ -5,7 +5,8 @@
import re
from django import http
-host_validation_re = re.compile(r"^([a-z0-9.-_]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$")
+host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$")
+#host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$")
http.host_validation_re = host_validation_re
class UnderscoreMiddleware(object):

0 comments on commit e30683a

Please sign in to comment.