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 2448143 commit 76ea061Copy full SHA for 76ea061
lib/submission_packager.rb
@@ -153,7 +153,8 @@ def copy_tmc_langs(dest)
153
end
154
155
def copy_extra_student_files(tmc_project_file, received, dest)
156
- tmc_project_file.extra_student_files.each do |rel_path|
+ tmc_project_file.extra_student_files.each do |insecure_rel_path|
157
+ rel_path = insecure_rel_path.tr("..", "")
158
from = "#{received}/#{rel_path}"
159
to = "#{dest}/#{rel_path}"
160
next unless File.exist?(from)
0 commit comments