Ignore new lines
in the path traversal middleware. Also, decompose the regex so that we can use it with or without the new line char included.
显示
- lib/gitlab/middleware/path_traversal_check.rb 3 个添加, 2 个删除lib/gitlab/middleware/path_traversal_check.rb
- lib/gitlab/path_traversal.rb 17 个添加, 4 个删除lib/gitlab/path_traversal.rb
- spec/lib/gitlab/middleware/path_traversal_check_spec.rb 36 个添加, 35 个删除spec/lib/gitlab/middleware/path_traversal_check_spec.rb
- spec/lib/gitlab/path_traversal_spec.rb 39 个添加, 5 个删除spec/lib/gitlab/path_traversal_spec.rb
想要评论请 注册 或 登录