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 050c020 commit b88922eCopy full SHA for b88922e
1 file changed
filemanager/filemanager.py
@@ -272,6 +272,11 @@ def readFileContents(self):
272
domainName = self.data['domainName']
273
website = Websites.objects.get(domain=domainName)
274
275
+ pathCheck = '/home/%s' % (domainName)
276
+
277
+ if self.data['fileName'].find(pathCheck) == -1:
278
+ return self.ajaxPre(0, 'Not allowed.')
279
280
command = 'cat ' + self.returnPathEnclosed(self.data['fileName'])
281
finalData['fileContents'] = ProcessUtilities.outputExecutioner(command, website.externalApp)
282
0 commit comments