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 de5bb17 commit e869ff9Copy full SHA for e869ff9
1 file changed
filemanager/filemanager.py
@@ -332,7 +332,10 @@ def writeFileContents(self):
332
writeToFile.write(self.data['fileContent'].encode('utf-8'))
333
writeToFile.close()
334
335
- if os.path.islink(self.data['fileName']):
+ command = 'ls -la %s' % (self.data['fileName'])
336
+ output = ProcessUtilities.outputExecutioner(command)
337
+
338
+ if output.find(website.externalApp) == -1:
339
return self.ajaxPre(0, 'File exists and is symlink.')
340
341
if self.data['fileName'].find(self.data['home']) == -1 or self.data['fileName'].find('..') > -1:
0 commit comments