reverted last useless patch

This commit is contained in:
mdipierro
2012-07-17 18:06:44 -05:00
parent d3925f371b
commit 7b62588d7e
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-07-17 18:01:46) dev
Version 2.00.0 (2012-07-17 18:06:40) dev
-9
View File
@@ -2,7 +2,6 @@ import base64, os, time
from gluon import portalocker
from gluon.admin import apath
from gluon.fileutils import read_file
from gluon.utils import web2py_uuid
# ###########################################################
# ## make sure administrator is on localhost or https
# ###########################################################
@@ -153,11 +152,3 @@ if request.controller=='appadmin' and DEMO_MODE:
session.flash = 'Appadmin disabled in demo mode'
redirect(URL('default','sites'))
# extra protection, csrf protection for every admin interaction
response.cookies['token'] = session.token = session.token or web2py_uuid()
if request.post_vars and not (
'token' in request.cookies and
request.cookies['token'].value == session.token):
raise HTTP(401,"Not Authorized")
# end extra secruity measures