We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c491a2 commit f8ba109Copy full SHA for f8ba109
filemanager/filemanager.py
@@ -334,8 +334,9 @@ def upload(self):
334
fs = FileSystemStorage()
335
filename = fs.save(myfile.name, myfile)
336
finalData['fileName'] = fs.url(filename)
337
+ pathCheck = '/home/%s' % (self.data['domainName'])
338
- if not self.data['completePath'].find(self.data['home']) > -1:
339
+ if self.data['completePath'].find(pathCheck) == -1:
340
return self.ajaxPre(0, 'Not allowed to move in this path, please choose location inside home!')
341
342
command = 'mv ' + self.returnPathEnclosed('/home/cyberpanel/media/' + myfile.name) + ' ' + self.returnPathEnclosed(self.data['completePath'] + '/' + myfile.name)
0 commit comments