update to 6.8.27

This commit is contained in:
aaPanel
2022-12-16 10:40:55 +08:00
parent d2a66661db
commit 7dcaa2b5ce
148 changed files with 22281 additions and 13876 deletions
+5 -9
View File
@@ -286,25 +286,21 @@ class MemcachedSessionInterface(SessionInterface):
session_id = self._get_signer(app).sign(want_bytes(session.sid))
else:
session_id = session.sid
from BTPanel import request, g, get_input
from BTPanel import request,g,get_input
if 'auth_error' in g: return
if request.path in ['/', '/tips','/robots.txt']: return
if request.path in ['/', '/tips', '/robots.txt', '/favicon.ico', '/hook', '/close', '/down/']: return
if request.path in ['/public']:
get = get_input()
if 'get_ping' in get: return
if not 'get_ping' in get: return
if response.status_code in [401]: return
if request.full_path.find('/login?tmp_token=') != 0:
if response.status_code not in [200, 308]: return
if response.status_code not in [200,308]: return
else:
if response.status_code not in [302, 301]: return
if response.status_code not in [302,301]: return
if secure: samesite = 'None'
if response.status_code not in [200,302]: return
if not request.cookies.get(app.session_cookie_name):
if request.full_path.find('/login?tmp_token=') == 0:
samesite = 'None'
secure = True
response.set_cookie(app.session_cookie_name, session_id,
expires=expires, httponly=httponly,
domain=domain, path=path, secure=secure,samesite=samesite)