Skip to content

Commit

Permalink
Fixes uploads where the title has a hash symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaskorhonen committed Oct 23, 2012
1 parent fc9bc79 commit 20ed3e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.rb
Expand Up @@ -65,6 +65,9 @@ class S3itchApp < Sinatra::Base
else
params[:name]
end

name << "##{request.env["FRAGMENT"]}" if request.env["FRAGMENT"]

content_type = if MIME::Types.type_for(name).any?
MIME::Types.type_for(name).first.content_type
else
Expand Down

0 comments on commit 20ed3e5

Please sign in to comment.