merged with online branch
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-06-06 11:06:38) dev
|
Version 2.00.0 (2012-06-06 11:19:38) dev
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
hosts = (http_host, )
|
hosts = (http_host, )
|
||||||
|
|
||||||
if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\
|
if request.env.http_x_forwarded_for or request.is_https:
|
||||||
in ['https', 'HTTPS']:
|
|
||||||
session.secure()
|
session.secure()
|
||||||
elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
||||||
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
hosts = (http_host, )
|
hosts = (http_host, )
|
||||||
|
|
||||||
if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\
|
if request.env.http_x_forwarded_for or request.is_https:
|
||||||
in ['https', 'HTTPS']:
|
|
||||||
session.secure()
|
session.secure()
|
||||||
elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
||||||
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
||||||
|
|||||||
Reference in New Issue
Block a user