mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 02:09:03 +01:00
bug fix: upgrade
This commit is contained in:
@@ -1398,7 +1398,7 @@ class Upgrade:
|
||||
writeToFile = open("/usr/local/CyberCP/CyberCP/settings.py", 'w')
|
||||
|
||||
for items in data:
|
||||
if items.find('csf') > -1:
|
||||
if items.find('csf') > -1 or items.find('SESSION_COOKIE_SECURE') > -1 or items.find('CSRF_COOKIE_SECURE') > -1:
|
||||
continue
|
||||
if items.find("CommonMiddleware") > -1:
|
||||
if csrfCheck == 1:
|
||||
|
||||
Reference in New Issue
Block a user