FIX: couldn't upload SVG with a DOCTYPE

This commit is contained in:
Régis Hanol 2017-08-07 10:32:35 +02:00
parent 764957dfc4
commit ad20f59897
2 changed files with 10 additions and 11 deletions

17
Gemfile
View File

@ -61,15 +61,16 @@ gem 'fast_xs'
gem 'fast_xor' gem 'fast_xor'
gem 'fastimage', '2.1.0' # Forked until https://github.com/sdsykes/fastimage/pull/93 is merged
gem 'discourse_fastimage', require: 'fastimage'
gem 'aws-sdk', require: false gem 'aws-sdk', require: false
gem 'excon', require: false gem 'excon', require: false
gem 'unf', require: false gem 'unf', require: false
gem 'email_reply_trimmer', '0.1.7' gem 'email_reply_trimmer', '0.1.7'
# TODO Use official image_optim gem once https://github.com/toy/image_optim/pull/149 # Forked until https://github.com/toy/image_optim/pull/149 is merged
# is merged.
gem 'discourse_image_optim', require: 'image_optim' gem 'discourse_image_optim', require: 'image_optim'
gem 'multi_json' gem 'multi_json'
gem 'mustache' gem 'mustache'
@ -85,7 +86,7 @@ gem 'omniauth-facebook'
gem 'omniauth-twitter' gem 'omniauth-twitter'
gem 'omniauth-instagram' gem 'omniauth-instagram'
# forked while https://github.com/intridea/omniauth-github/pull/41 is being upstreamd # Forked until https://github.com/intridea/omniauth-github/pull/41 is merged
gem 'omniauth-github-discourse', require: 'omniauth-github' gem 'omniauth-github-discourse', require: 'omniauth-github'
gem 'omniauth-oauth2', require: false gem 'omniauth-oauth2', require: false
@ -110,9 +111,8 @@ gem 'mini_racer'
gem 'highline', require: false gem 'highline', require: false
gem 'rack-protection' # security gem 'rack-protection' # security
# Gems used only for assets and not required # Gems used only for assets and not required in production environments by default.
# in production environments by default. # Allow everywhere for now cause we are allowing asset debugging in production
# allow everywhere for now cause we are allowing asset debugging in prd
group :assets do group :assets do
gem 'uglifier' gem 'uglifier'
gem 'rtlit', require: false # for css rtling gem 'rtlit', require: false # for css rtling
@ -157,7 +157,7 @@ end
# this is an optional gem, it provides a high performance replacement # this is an optional gem, it provides a high performance replacement
# to String#blank? a method that is called quite frequently in current # to String#blank? a method that is called quite frequently in current
# ActiveRecord, this may change in the future # ActiveRecord, this may change in the future
gem 'fast_blank' #, github: "SamSaffron/fast_blank" gem 'fast_blank'
# this provides a very efficient lru cache # this provides a very efficient lru cache
gem 'lru_redux' gem 'lru_redux'
@ -177,7 +177,6 @@ gem 'rbtrace', require: false, platform: :mri
gem 'gc_tracer', require: false, platform: :mri gem 'gc_tracer', require: false, platform: :mri
# required for feed importing and embedding # required for feed importing and embedding
#
gem 'ruby-readability', require: false gem 'ruby-readability', require: false
gem 'simple-rss', require: false gem 'simple-rss', require: false

View File

@ -79,6 +79,7 @@ GEM
diff-lcs (1.3) diff-lcs (1.3)
discourse-qunit-rails (0.0.9) discourse-qunit-rails (0.0.9)
railties railties
discourse_fastimage (2.1.0)
discourse_image_optim (0.24.5) discourse_image_optim (0.24.5)
exifr (~> 1.2, >= 1.2.2) exifr (~> 1.2, >= 1.2.2)
fspath (~> 3.0) fspath (~> 3.0)
@ -112,7 +113,6 @@ GEM
rake rake
rake-compiler rake-compiler
fast_xs (0.8.0) fast_xs (0.8.0)
fastimage (2.1.0)
ffi (1.9.18) ffi (1.9.18)
flamegraph (0.9.5) flamegraph (0.9.5)
foreman (0.84.0) foreman (0.84.0)
@ -413,6 +413,7 @@ DEPENDENCIES
certified certified
cppjieba_rb cppjieba_rb
discourse-qunit-rails discourse-qunit-rails
discourse_fastimage
discourse_image_optim discourse_image_optim
email_reply_trimmer (= 0.1.7) email_reply_trimmer (= 0.1.7)
ember-handlebars-template (= 0.7.5) ember-handlebars-template (= 0.7.5)
@ -425,7 +426,6 @@ DEPENDENCIES
fast_blank fast_blank
fast_xor fast_xor
fast_xs fast_xs
fastimage (= 2.1.0)
flamegraph flamegraph
foreman foreman
gc_tracer gc_tracer