mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
bug fix: security
This commit is contained in:
@@ -595,19 +595,7 @@ class FileManager:
|
||||
finalData['uploadStatus'] = 1
|
||||
finalData['answer'] = 'File transfer completed.'
|
||||
|
||||
### Check if upload path tmp dir is not available
|
||||
|
||||
UploadPath = '/usr/local/CyberCP/tmp/'
|
||||
|
||||
if not os.path.exists(UploadPath):
|
||||
command = 'mkdir %s' % (UploadPath)
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chown cyberpanel:cyberpanel %s' % (UploadPath)
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chmod 711 %s' % (UploadPath)
|
||||
ProcessUtilities.executioner(command)
|
||||
ACLManager.CreateSecureDir()
|
||||
|
||||
## Random file name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user