Commit 02dcf68e authored by 's avatar

merged fix for bug 2002

parent 11186505
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.140 $'[11:-2] __version__='$Revision: 1.141 $'[11:-2]
import Globals, socket, ts_regex, SpecialUsers import Globals, socket, ts_regex, SpecialUsers
import os import os
...@@ -993,6 +993,10 @@ def domainSpecMatch(spec, request): ...@@ -993,6 +993,10 @@ def domainSpecMatch(spec, request):
host='' host=''
addr='' addr=''
# Fast exit for the match-all case
if len(spec) == 1 and spec[0] == '*':
return 1
if request.has_key('REMOTE_HOST'): if request.has_key('REMOTE_HOST'):
host=request['REMOTE_HOST'] host=request['REMOTE_HOST']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment