Expand HandleNullBytes to handle malformed strings
Expands the HandleNullBytes middleware to also handle malformed strings. Changes the middleware to return ActionController::BadRequest so we use the default Rails bad request handling.
显示
- changelogs/unreleased/257822-null-byes-in-url.yml 5 个添加, 0 个删除changelogs/unreleased/257822-null-byes-in-url.yml
- config/application.rb 2 个添加, 2 个删除config/application.rb
- lib/gitlab/middleware/handle_malformed_strings.rb 12 个添加, 7 个删除lib/gitlab/middleware/handle_malformed_strings.rb
- spec/lib/gitlab/middleware/handle_malformed_strings_spec.rb 109 个添加, 0 个删除spec/lib/gitlab/middleware/handle_malformed_strings_spec.rb
- spec/lib/gitlab/middleware/handle_null_bytes_spec.rb 0 个添加, 88 个删除spec/lib/gitlab/middleware/handle_null_bytes_spec.rb
- spec/requests/user_sends_malformed_strings_spec.rb 20 个添加, 0 个删除spec/requests/user_sends_malformed_strings_spec.rb
加载中
想要评论请 注册 或 登录