#36 Fix OS remote code execution

マージ済み
sindre が 1 個のコミットを minor から master へマージ 5年前
  1. +2
    -6
      src/app/views/project.py

+ 2
- 6
src/app/views/project.py ファイルの表示

@@ -64,14 +64,10 @@ class Project:
# Create the project directory if it doesnt exist
path = 'static/project' + data.projectid
if not os.path.isdir(path):
command = 'mkdir ' + path
os.popen(command)
sleep(0.2)
os.mkdir(path)
path = path + '/task' + data.taskid
if not os.path.isdir(path):
command = 'mkdir ' + path
os.popen(command)
sleep(0.2)
os.mkdir(path)
open(path + '/' + fn, 'wb').write(fileitem.file.read())
models.project.set_task_file(data.taskid, (path + "/" + fn))
except:


読み込み中…
キャンセル
保存