Render sanitized SVG images
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- Gemfile 3 个添加, 0 个删除Gemfile
- Gemfile.lock 1 个添加, 0 个删除Gemfile.lock
- app/helpers/blob_helper.rb 12 个添加, 0 个删除app/helpers/blob_helper.rb
- app/views/projects/blob/_blob.html.haml 4 个添加, 1 个删除app/views/projects/blob/_blob.html.haml
- features/project/source/browse_files.feature 10 个添加, 0 个删除features/project/source/browse_files.feature
- features/steps/project/source/browse_files.rb 17 个添加, 0 个删除features/steps/project/source/browse_files.rb
- spec/fixtures/logo_sample.svg 27 个添加, 0 个删除spec/fixtures/logo_sample.svg
... | ... | @@ -179,6 +179,9 @@ gem "underscore-rails", "~> 1.8.0" |
gem "sanitize", '~> 2.0' | ||
gem 'babosa', '~> 1.0.2' | ||
# Sanitizes SVG input | ||
gem "loofah", "~> 2.0.3" | ||
# Protect against bruteforcing | ||
gem "rack-attack", '~> 4.3.1' | ||
... | ... |
spec/fixtures/logo_sample.svg
0 → 100644
想要评论请 注册 或 登录