mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
status file proection
This commit is contained in:
@@ -1761,7 +1761,8 @@ class WebsiteManager:
|
|||||||
try:
|
try:
|
||||||
statusFile = data['statusFile']
|
statusFile = data['statusFile']
|
||||||
|
|
||||||
if (statusFile[:16] == "/home/cyberpanel" or statusFile[:4] == '/tmp' or statusFile[:18] == '/usr/local/CyberCP') and statusFile != '/usr/local/CyberCP/CyberCP/settings.py':
|
if (statusFile[:16] == "/home/cyberpanel" or statusFile[:4] == '/tmp' or statusFile[:18] == '/usr/local/CyberCP') \
|
||||||
|
and statusFile != '/usr/local/CyberCP/CyberCP/settings.py' and statusFile.find('..') == -1:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
data_ret = {'abort': 1, 'installStatus': 0, 'installationProgress': "100",
|
data_ret = {'abort': 1, 'installStatus': 0, 'installationProgress': "100",
|
||||||
|
|||||||
Reference in New Issue
Block a user